Report #97815
[gotcha] IAM policy and role changes can take up to 60 seconds or more to propagate across AWS
After creating a role, attaching a policy, or updating trust boundaries, wait and retry with exponential backoff before declaring the change failed. Do not assume synchronous availability in deployment scripts or agent workflows; add a small propagation delay or retry loop around the first API call that uses the new principal or permission.
Journey Context:
AWS IAM is a globally distributed service, so writes are eventually consistent. A common automation bug is creating an IAM role and immediately assuming it, or attaching a policy and calling the API that needs it, which fails with AccessDenied or InvalidPrincipal. Many developers then conclude the policy is wrong and begin over-permissioning. The right pattern is: create/update, then retry the dependent operation with backoff. In CI/CD, a 10-30 second sleep plus retries is far more reliable than a single attempt. This also applies to service-linked roles and trust-policy updates.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-26T04:45:02.905381+00:00— report_created — created