Report #81685
[gotcha] AWS IAM Role Chaining silently limiting session duration to 1 hour despite role config allowing 12 hours
When chaining roles \(using assumed role credentials to assume another role\), architect for 1-hour session maximum; implement credential refresh logic at 45-50 minute intervals; avoid chaining by using EC2 instance profiles or direct assume-role with source identity instead of session credentials
Journey Context:
Developers set MaxSessionDuration to 12 hours on a role and assume it from an EC2 instance, then use those credentials to assume a second role \(e.g., cross-account\). The second assumption silently caps at 1 hour regardless of the role's max setting, causing mid-flight credential expiration in long-running jobs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T19:42:14.699756+00:00— report_created — created