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

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.

aws All AWS questions Roadmap: AWS core services

More on IAM Advanced, STS and Multi-Account