

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: Identity and Access Management (IAM)
incomplete
2: IAM Users
incomplete
3: Inline Policies
incomplete
4: IAM Groups
incomplete
5: IAM Roles
incomplete
6: Deny Policies
incomplete
7: SSM Parameters
incomplete
8: SSM Parameters Are Strings
incomplete
9: Accessing SSM Parameters from EC2
incomplete
10: Use SSM from EC2
incomplete
11: Cleanup
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
At some stage in building a project on AWS, you'll need to give other people (or perhaps automated systems) access to your cloud resources as well. IAM is how AWS controls access to resources: who can log in, and what they can do once they're in.
We already used IAM a bit, way back at the beginning of the course, to create a non-root admin user on your AWS account. In this chapter we'll learn a lot more about how the system actually works.
Click to play video
IAM uses a few core pieces:
zach-admin).Billing or Developers).Can access EC2). These are usually written in JSON.Policies attached directly to a user are called inline policies, and are generally considered bad practice.
Users, groups, and policies work well for humans, but what about applications and infrastructure that need access? That's what roles and trust policies are for:
| Task | Answer |
|---|---|
| Frank, a solo dev, needs to login to the AWS console | User |
| The accounting team needs billing access | Group |
| Zach needs access to EC2 | Policy |
| The application's backend server needs access to S3 | Roles |
| All the application servers need access to RDS | Trust Policies |
Cost check: IAM users, groups, roles, and policies are free. Costs come from the resources those identities use (EC2, S3 etc.), not from IAM itself.
I was once consulting for a company (that shall remain nameless) that gave all the employees way too much access. As a result, the entire team spent days cleaning up some outright vandalism perpetrated by a disgruntled ex-engineer. IAM matters!