Report #5995
[gotcha] STS AssumeRole credentials fail with AccessDenied when used immediately due to IAM session principal propagation delay
Implement exponential backoff retry \(up to 5-10 seconds\) after AssumeRole before the first resource access, or use pre-warmed role credentials rather than assuming roles under time pressure
Journey Context:
Unlike static IAM policies that propagate quickly, the dynamic session principal \(assumed-role/RoleName/SessionName\) takes time to replicate across IAM's globally distributed system. Standard SDK retry logic handles throttling \(503s\) but often treats AccessDenied \(403\) as fatal. This causes intermittent failures in automation that assumes credentials are valid immediately. The delay is not documented with a specific SLA, requiring defensive retries.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T22:47:36.424540+00:00— report_created — created