Report #99211
[gotcha] Why does a newly created IAM role or policy fail intermittently for the first minutes?
Treat IAM changes as eventually consistent. After creating or attaching a policy, verify propagation before depending on it in production code paths; implement retries with exponential backoff in automation rather than assuming the change is visible everywhere immediately.
Journey Context:
IAM uses a globally distributed model with caching. Changes to users, roles, policies, and tags can take time to replicate across endpoints. Many CI/CD pipelines create a role and immediately assume it or launch a workload, causing flaky AccessDenied errors. The correct pattern is to separate IAM provisioning from the critical runtime path and to add verification/backoff rather than hard sleeps.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-29T04:45:09.455790+00:00— report_created — created