IAM
IAM is a service that controls access to AWS resources
IAM entities:
- Users: mapped to a physical user, has a password for AWS console
- Groups: Functions (admin, devops) Teams (engineering, design) which contain a group of users.
- Roles: Internal usage within AWS resources
- Policy is a JSON document that defines one or more permissions for users or groups.
You can apply policies to users, groups, and roles. Users, groups, and roles can all share the same policy documents.
Below is an example of a JSON policy document:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
Best practices
- One IAM User per person ONLY
- One IAM Role per Application
- Never use the ROOT account except for initial setup
- It's best to give users the minimal amount of permissions to perform their job