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
More on IAM Advanced, STS and Multi-Account
Explain the IAM policy evaluation logic.AdvancedHow does cross-account access evaluation differ from same-account?AdvancedHow does `sts:AssumeRole` work, step by step?IntermediateWhat is the difference between AssumeRole, AssumeRoleWithWebIdentity and AssumeRoleWithSAML?IntermediateWhat do Service Control Policies do and not do?IntermediateDeny-list vs allow-list SCP strategy: which do you pick?Advanced