Interview Prep/AWS/IAM Best Practices

How does ABAC with Identity Center work, and when is it worth it?

AdvancedProductionIAM Best Practices
Answer

Identity Center passes user attributes from the IdP (for example team or costCenter) as session tags. Policies then compare aws:PrincipalTag/team with aws:ResourceTag/team:

"Condition": {"StringEquals": {"aws:ResourceTag/team": "${aws:PrincipalTag/team}"}}

One permission set then serves every team, and new teams need no new policies. It is worth it when you have many teams sharing accounts; it requires strict tagging enforcement (tag on create, deny tag modification) or users can retag resources into their scope.

aws All AWS questions Roadmap: AWS core services

More on IAM Best Practices