Report #63585
[gotcha] AWS IAM role chaining session duration capped at 1 hour despite role MaxSessionDuration setting
When assuming a role using temporary credentials from a previous AssumeRole call \(chaining\), explicitly set DurationSeconds to 3600 or less; do not rely on the role's MaxSessionDuration property which can be up to 12 hours but is ignored in chaining scenarios.
Journey Context:
Engineers commonly assume that setting a role's MaxSessionDuration to 12 hours and requesting a session via AssumeRole will yield 12 hours even when using assumed role credentials as the source. This fails silently—AWS caps chained sessions at 1 hour regardless of the role configuration. The workaround is to avoid chaining where possible \(use the original credentials to assume the target role directly\) or implement session refresh logic every hour.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T13:12:51.087974+00:00— report_created — created