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

What is a permission boundary and when would you use one?

IntermediateConceptIAM Advanced, STS and Multi-Account
Answer

A permission boundary is a managed policy set on a user or role that defines the maximum permissions it can ever have. Effective access is the intersection of the identity policy and the boundary. It never grants anything itself.

Use it for delegated administration: let developers create roles for their Lambdas, but require iam:PermissionsBoundary to equal your boundary ARN on every CreateRole, so they cannot create a role more powerful than themselves.

aws iam put-role-permissions-boundary --role-name dev-app \
  --permissions-boundary arn:aws:iam::123456789012:policy/DevBoundary
aws All AWS questions Roadmap: AWS core services

More on IAM Advanced, STS and Multi-Account