Report #91059
[gotcha] IAM Role Chaining session duration capped at 1 hour
When chaining roles \(assuming Role B via credentials from Role A\), request a session duration of 1 hour or less; do not attempt to request 12 hours even if the role allows it, as the STS API will truncate or fail.
Journey Context:
Direct assumption of a role can yield 12-hour sessions \(configurable on the role\). However, when using role chaining \(e.g., an EC2 instance profile assumes a second role, then a third\), the maximum session duration is strictly 1 hour. Requesting longer durations results in the STS call returning a 1-hour token without error, leading to silent expiration of long-running tasks. The workaround is to avoid deep chaining or re-assume the role periodically before the 1-hour mark.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T11:26:24.570498+00:00— report_created — created