Skill 2.3.3

Defining groups, users, custom policies, and managed policies in compliance with the principle of least privilege

Key Concepts

An IAM user represents a person or application with long-term credentials. An IAM group is a collection of users; attach policies to groups (for example, Developers, Admins) so permissions are managed in one place. Policies are JSON documents that allow or deny actions on resources.

AWS managed policies are created and maintained by AWS (convenient but often broad). Customer managed policies are custom and can be tightly scoped. The principle of least privilege means granting only what is needed: start small and add permissions as required, and remove unused permissions.