How does attribute-based access control (ABAC) work in AWS?
AdvancedConceptIAM Advanced, STS and Multi-Account
Answer
Instead of one policy per project, you tag principals and resources and write a single policy comparing tags, for example allow ec2:StartInstances only when aws:ResourceTag/Project equals aws:PrincipalTag/Project.
"Condition": {"StringEquals": {"aws:ResourceTag/Project": "${aws:PrincipalTag/Project}"}}
It scales with teams, but only works if tagging is protected: deny iam:TagRole/ec2:CreateTags changes on the controlling tags, and know that not every service supports tag-based authorization.
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 is a permission boundary and when would you use one?IntermediateWhat do Service Control Policies do and not do?Intermediate