Skill 1.1.2

Designing a flexible authorization model that includes IAM users, groups, roles, and policies

Key Concepts

Users represent a person or workload with long-term credentials. Groups collect users so permissions are managed once (groups cannot be nested and are not principals in policies). Roles have no long-term credentials; they are assumed by users, applications, AWS services or federated identities and return temporary credentials. Roles are the preferred way to give access to applications (EC2 instance profiles, Lambda execution roles, ECS task roles).

Policies are JSON documents of statements with Effect, Action, Resource and optional Condition. AWS managed policies are convenient but broad; customer managed policies are reusable and versioned; inline policies are embedded in one identity. Permissions boundaries cap the maximum permissions an identity can have, which lets you delegate role creation safely.

Flexible models often use attribute-based access control (ABAC): tag principals and resources (for example Project=Blue) and write one policy that allows access when aws:PrincipalTag/Project matches aws:ResourceTag/Project. New projects then need tags, not new policies.