Skill 6.1.2

Implementing role-based and attribute-based access control patterns

Key Concepts

Role-based access control creates roles or IAM Identity Center permission sets per job function (developer, operator, auditor) and grants them to groups. It is easy to understand but needs policy updates as new resources and projects appear.

Attribute-based access control writes policies that compare principal tags with resource tags, for example allowing actions when aws:ResourceTag/project equals ${aws:PrincipalTag/project}, and requiring tags on creation with aws:RequestTag. New projects work without policy changes. Identity Center and SAML federation can pass user attributes from the identity provider as session tags.