Interview Prep/AWS/IAM Advanced, STS and Multi-Account

How consistent is IAM, and what does that mean for automation?

BeginnerConceptIAM Advanced, STS and Multi-Account
Answer

IAM is eventually consistent: a newly created role, policy change or attachment may take seconds to propagate across Regions' IAM endpoints. Scripts that create a role and immediately use it can fail with InvalidParameterValueException: The role defined for the function cannot be assumed by Lambda or AccessDenied.

Terraform and CloudFormation add retries; in shell scripts add a short wait-and-retry loop and avoid putting IAM changes in the critical path of high-frequency flows.

aws All AWS questions Roadmap: AWS core services

More on IAM Advanced, STS and Multi-Account