Report #11992
[gotcha] Intermittent 403 AccessDenied immediately after IAM policy update or role assumption
Implement an exponential backoff retry loop \(up to 5 attempts with jitter\) specifically on 403/AccessDenied errors when the operation immediately follows an IAM mutation; do not treat the first 403 as a hard failure.
Journey Context:
IAM is an eventually consistent distributed system. When a policy is attached or a role is assumed, the change must propagate to all regional IAM endpoints and internal enforcement points. Developers treat IAM changes as synchronous \(create policy → immediate API call\) and get sporadic 403s that disappear on retry. They waste hours debugging policy syntax when the issue is propagation delay, which can occasionally exceed 60 seconds during partition recovery or high write contention.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T14:49:16.256502+00:00— report_created — created