When do you use permission boundaries in production?
IntermediateProductionIAM Best Practices
Answer
When you delegate IAM creation. Developers or pipelines can create roles for their apps, but only if they attach a boundary, and the boundary caps what any created role can ever do:
{
"Effect": "Deny",
"Action": ["iam:CreateRole", "iam:PutRolePermissionsBoundary"],
"Resource": "*",
"Condition": {"StringNotEquals": {"iam:PermissionsBoundary": "arn:aws:iam::111122223333:policy/AppBoundary"}}
}
Also deny deleting the boundary and editing the boundary policy itself. Effective permissions are the intersection of identity policy and boundary.
More on IAM Best Practices
What does least privilege look like in practice, not in theory?BeginnerWhat are the IAM rules you enforce for humans?BeginnerHow do you design Identity Center permission sets for many teams?IntermediateHow does ABAC with Identity Center work, and when is it worth it?AdvancedHow do you remove long-lived access keys from an existing estate?IntermediateHow do you implement just-in-time privileged access in AWS?Advanced