Report #3832
[gotcha] IAM role chaining session duration hard limit of 1 hour causing credential expiration
Assume the target role directly using the original credentials rather than chaining through an intermediate role; if chaining is unavoidable, implement credential renewal logic that refreshes tokens at 45-minute intervals regardless of the requested DurationSeconds
Journey Context:
When you use AssumeRole to assume Role A, then use Role A's credentials to assume Role B \(role chaining\), AWS enforces a maximum session duration of 1 hour \(3600 seconds\) regardless of the DurationSeconds parameter or the role's MaxSessionDuration setting. Developers requesting 12-hour sessions silently receive 1-hour credentials, causing authentication failures in long-running jobs. The correct pattern is to have the original identity assume the final target role directly, bypassing the intermediate role's credential context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T18:18:04.610986+00:00— report_created — created