
She's Making Sense of It #1: IAM, or Who Gets to Do What in AWS
She's Making Sense of It. Still Learning. Notes from someone who got lost in AWS and is slowly figuring it out. Not an expert guide, just honest learning. Article #01: I got lost at the AWS login screen and learned IAM the hard way. Here’s what users, roles and policies actually mean, in plain words.
Before we start: what this series is
I started learning AWS in late February.
I still remember the first time I logged into the console. Hundreds of services. Names that sound like a sneeze (Kinesis, Athena, Glue, Fargate). A search bar that returns twelve things when you type one word. And the quiet feeling that everyone else had been handed a map that I somehow missed.
If that's where you are right now, you're welcome to read along.
She's Making Sense of It is my weekly learning journal. Each week I take one AWS concept, break it down the way I wish someone had explained it to me, and tell you honestly where I got confused.
To be clear about what this is not: it's not an official guide, it's not written by an expert, and it's not guaranteed to be perfect. I'm still learning, and I will get things wrong sometimes. When something matters (security, billing, anything in production), please check it against the official AWS documentation. If I got something wrong, tell me in the comments and I'll fix it and say so.
I'll keep writing this even as I get further along, because explaining things plainly is the best way for me to actually understand them.
Every article follows the same shape:
- The trigger: why this topic matters, and what pushed me to learn it
- Where it got confusing: the honest part
- The concept, explained plainly: no jargon without a translation
- Why it matters beyond this week: how it connects to everything else
Let's start where AWS itself starts.
The trigger: everyone meets IAM through an error
IAM is the first AWS service everyone tells you to learn.
It's also the last one you feel like you understand.
And a lot of people (me included) meet it through an error rather than a tutorial:
AccessDenied No explanation. No "here's what you forgot." Just AWS looking at you and saying no.
I noticed that whenever something didn't work in my early AWS projects, the real answer was hiding in IAM. A Lambda function couldn't read a file. A service couldn't talk to another service. A page couldn't load. Again and again the cause was the same: somebody wasn't allowed to do something, and I hadn't told AWS they should be.
So before touching anything else, it's worth understanding IAM properly. Everything else in AWS sits on top of it.
What IAM actually is
IAM stands for Identity and Access Management.
Strip away the name and it answers exactly two questions about every single action in AWS:
- Who are you? (identity)
- Are you allowed to do this? (access)
That's it. Every time anyone or anything tries to do something in AWS, whether it's you clicking a button, a script running, or one service calling another, AWS asks those two questions.
Two facts worth knowing early:
- IAM is free. You never pay for using it.
- IAM is global. Unlike most AWS services, it isn't tied to one region. A user you create exists everywhere.
Where it got confusing
Users. Groups. Roles. Policies. Root. Permissions. Principals.
At first they all sound like the same thing wearing different hats. The console doesn't help, because it puts them all in one menu and expects you to know the difference.
My confusion actually started before any of that. It started at the login screen.
When I created my account, I wasn't sure who I was supposed to log in as. AWS had made me a root user with my email, and then everything I read told me not to use it. Use what instead? Log in with what? And once I was inside, what was I supposed to do first?
Nobody explains that part. You land in a console with hundreds of services and no instruction manual, and the very first real decision is one you don't even know you're making: root user or IAM user.
The concept, explained plainly
The office building analogy
Imagine AWS is a huge office building with thousands of rooms. Each room is a service: storage rooms, computing rooms, database rooms. IAM is the security desk at the entrance.
- User: a person who works in the building and has their own ID badge. Your badge is tied to you.
- Group: a team, like "Developers" or "Accounting." Instead of programming each person's badge one by one, you give the team a set of access, and everyone in it inherits that access.
- Role: a visitor badge that nobody owns permanently. Whoever needs it borrows it for a short time, does their job, and hands it back. People can borrow roles. So can services. A Lambda function, for example, borrows a role to get into the storage room.
- Policy: the rules printed on a badge. Which doors it opens and which stay locked. A policy doesn't do anything on its own until it's attached to a user, group, or role.
- Root user: the master key to the whole building. It can open everything, including the room where billing and account closure live. You lock it away, protect it with MFA, and almost never use it.
If you remember only one thing: identities (users, roles) are the "who." Policies are the "what they're allowed to do."
What a policy actually looks like
Policies are written in JSON, which looks scary the first time. Here's a tiny one:
{ "Effect": "Allow", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::my-bucket/*"}Read it like a sentence:
- Effect: Allow (or Deny)
- Action: what is being done (
s3:GetObjectmeans "read a file from S3")
- Resource: what it's being done to (
my-bucket/*means "any file inside my-bucket")
In plain words: this badge is allowed to read files inside my-bucket.
Who, what, which resource. Every policy, however long, is just many of these sentences stacked together.
How AWS decides yes or no
Every request is checked in this order:
- Start from "no." Everything is denied by default.
- Look for an explicit Deny. If one matches, the answer is no. Stop. Nothing can override it.
- Look for an Allow. If one matches, the answer is yes.
- Nothing matched? Back to the default: no.
This is why
AccessDenied shows up so often. Most of the time, nobody denied you. Nobody allowed you either, and "nothing says yes" is treated as no.The three rules that explain most errors
- Everything is denied by default. If no policy says "allow," the answer is no.
- An explicit Deny always wins. Even over an Allow. Even if you're the owner.
- Give the minimum access needed. This is called least privilege. Not "admin for everything because it's easier." If a Lambda only needs to read one bucket, it gets permission to read that one bucket and nothing more.
Why roles matter more than they first seem
When a service like Lambda needs to talk to S3, how does it prove who it is?
It doesn't carry a username and password. Instead, it assumes a role. AWS hands it temporary credentials that expire after a while, and it uses those to do its job.
That's much safer than the alternative, which is a permanent access key sitting inside your code. Permanent keys get copied, committed to GitHub, and leaked. Temporary credentials expire on their own.
So the habit to build early: services use roles. Don't put keys in code.
Five mistakes that are easy to make (I made some of them)
- Using the root user for everyday work. Root can do anything, which means a mistake or a leak is catastrophic. Create a separate everyday identity and keep root locked away.
- Skipping MFA on root. Turn it on first. It takes two minutes.
- Giving
AdministratorAccessto everything "just to make it work." It does make the error go away. It also makes your account one mistake from a bad day.
- Hardcoding access keys in code. Use roles instead.
- Treating AccessDenied as a bug instead of a message. It's AWS telling you exactly where to look. Read the error. It often names the action and the resource that were blocked.
What I'd do on day one of a new AWS account
This is what I did, and what I'd do again. For the current recommended setup, check the official AWS documentation:
- Turn on MFA for the root user
- Create an everyday identity for yourself (AWS now recommends IAM Identity Center for people, or an IAM user with admin permissions if you want the simpler route to begin with)
- Stop using root for daily work
- Set a budget alert so a surprise bill doesn't surprise you
- Never paste access keys into code, chats, or GitHub
Simple, but it would have saved me some confusion.
How IAM showed up in my own projects
I didn't learn this from a textbook. I learned it by building:
- Account setup: I put MFA on the root user, created a separate IAM admin user for everyday work, and set a zero-spend budget alert before building anything. That's the first-day checklist above, and I did it because I felt so lost on day one.
- Lambda roles: each of my Lambda functions got its own execution role with only the permissions it needed, like reading and writing one S3 bucket and calling Bedrock. That's least privilege in real life.
- The lockout: I once wrote an S3 bucket policy with an explicit Deny for everyone on a single file, and it blocked my own Lambda too. Explicit Deny wins, even against your own backend. When I tried to exempt the Lambda's role, I found out that Lambda uses an assumed-role session, so matching it was trickier than I expected.
Those three moments taught me more than any definition did.
My 10-minute console moment
Reading about IAM only goes so far. Spend ten minutes in the console and look at it with the analogy in your head:
- Open IAM from the search bar
- Click Users and look at your own identity
- Click Roles and open any one (if you've built a Lambda, you'll have one)
- Open one Policy and read the JSON as a sentence: Effect, Action, Resource
When I opened IAM with the office analogy in my head, it finally clicked. My admin user was the badge I use every day. The execution roles for my Lambda functions were visitor badges lent to the code. The policies were the rules printed on them.
Same screens that confused me back in February, completely different once you know what you're looking at.
A tiny glossary
- IAM: the service that controls who can do what
- Principal: whoever is making the request (a user, a role, a service)
- Policy: a JSON document of permissions
- Role: a temporary identity that can be borrowed
- Least privilege: give only what's needed, nothing extra
- MFA: a second proof of identity, like a code from your phone
- Root user: the original all-powerful account identity
Why it matters beyond this week
When something fails in AWS, IAM is the first place worth looking.
It's also the foundation of security. Every service you will ever touch, whether S3, Lambda, DynamoDB, or Bedrock, asks the same question underneath: are you allowed to do this?
Once you understand that, services stop feeling like hundreds of separate things. They start feeling like rooms in the same building, all guarded by the same desk.
Understanding this early made the rest of AWS a lot less scary for me.
Still learning.
This is Article 1 of She's Making Sense of It, my AWS learning journal. Not an expert guide, just honest notes.
Got a question about IAM, or a concept you're stuck on? Drop it in the comments. It might become a future article. And if I got something wrong, please correct me.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article