Report #58584
[gotcha] IAM AssumeRole session duration ignored when using role chaining
When assuming a role using credentials obtained from a previous AssumeRole call \(chaining\), hardcode DurationSeconds to 3600 \(1 hour\) maximum; longer durations silently cap at 1 hour or cause failures depending on SDK.
Journey Context:
Engineers building multi-account delegation pipelines often request 12-hour sessions for long-running jobs. When they chain roles \(e.g., CI role assumes deployment role\), the second AssumeRole call ignores the requested DurationSeconds and enforces a 1-hour hard limit regardless of the role's MaxSessionDuration. This causes credential expiration mid-deployment. The only fix is to avoid chaining \(use direct assume with long-term creds or web identity\) or implement aggressive credential refreshing every <1h.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T04:49:17.061842+00:00— report_created — created