Report #6718
[gotcha] IAM policy changes causing sporadic 403 Forbidden errors immediately after update
Implement retry logic with exponential backoff \(up to 60s\) after IAM policy updates, or verify propagation by polling for successful test access before marking deployment as complete.
Journey Context:
IAM uses a distributed system for policy evaluation across global edge locations. When you attach a policy, the change must propagate to all IAM endpoints. During the propagation window \(typically 5-30 seconds, but up to 60 seconds\), some API calls may hit endpoints with stale data, causing valid credentials to be rejected. Common mistakes include: immediately testing access after IAM updates in CI/CD pipelines \(flaky tests\), assuming IAM is strongly consistent like a database, or retrying with the same static credentials without delay. The fix involves treating IAM as eventually consistent: wait, poll for access, or implement idempotent retry with backoff.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T00:45:46.563513+00:00— report_created — created