AWS in 1 Min · Episode 04

IAM in 1 minute

Who can do what in your account. Watch the one-minute video, then read the details.

David Gomez1:01 video · 3 min read

"Just use the root account for everything." It's fast, and it's dangerous. The root user can do anything in your AWS account, including deleting everything in it and closing the account. If those credentials leak, there's no permission left to stop the damage. Everyday work belongs in IAM.

Lock the root user away

The root user is the email address you signed up with. Treat it like the master key to the building:

  • Turn on MFA for it. AWS has been making root MFA mandatory, but don't wait to be told.
  • Never create access keys for root.
  • Use it only for the few tasks that require it, such as changing account-level settings or closing the account.

IAM: who can do what

IAM (Identity and Access Management) answers one question: who can do what, on which resources? Its building blocks:

  • Users are identities with long-term credentials, like a password or access keys.
  • Groups bundle users so you set permissions once, for example all your developers.
  • Roles are identities with no password. Whoever assumes a role gets temporary credentials that expire. An EC2 instance can wear a role to read from an S3 bucket, with no keys stored on the server.
  • Policies are the rules, written in JSON. Each statement says Allow or Deny, a set of actions such as s3:GetObject, and the resources they apply to.

For people, current best practice goes one step further. Instead of creating an IAM user for each person, use IAM Identity Center to sign people in with your company identity provider, so they get temporary credentials through roles. Keep IAM users for the rare cases that really need them.

How AWS decides

Every request is evaluated the same way:

  1. By default, everything is denied.
  2. An allow in a policy opens the door.
  3. An explicit deny anywhere always wins, even over an allow.

In multi-account setups, Service Control Policies from AWS Organizations set the maximum permissions for a whole account. Even an administrator inside that account can't go beyond them.

Least privilege, in practice

The golden rule is least privilege: grant only the access that's needed, and nothing more.

The most common mistake looks like this. A deployment fails with "access denied", someone attaches AdministratorAccess to make it work, and it never gets removed. Months later, a leaked access key from that pipeline can do anything.

A better path:

  • Start with narrow permissions, and widen them only when a real task needs it.
  • Use roles instead of long-term access keys, especially for apps and CI/CD.
  • Use IAM Access Analyzer to find unused access and to generate policies based on what an identity actually did, recorded in CloudTrail.

Where AI fits

AI on AWS runs through IAM like everything else. Calling a model in Amazon Bedrock is an IAM action, such as bedrock:InvokeModel, so you can limit which teams and apps can use which models. This matters even more for AI agents. An agent that calls tools with an IAM role can do exactly what that role allows, so give it the smallest role that does the job. AI assistants can help you draft and explain policies, but review every line before you apply it.

Quick recap

  • Lock away root: MFA on, no access keys, rarely used.
  • Users and groups are for people, and Identity Center is the modern way to sign them in.
  • Roles give temporary access with no password.
  • Policies set the rules: default deny, allow opens, explicit deny wins.
  • Apply least privilege, everywhere.
AWS in 1 Min #04 · 1:01

Need an AWS expert on your team?

I'm David, an AWS expert and fractional cloud consultant. I work alongside your team to run your cloud and infrastructure: architecture, security, cost and day-to-day operations. You get senior AWS experience when you need it, without the cost of a full-time hire.

  • Architecture reviews and a clear plan for what to fix first
  • Security hardening: IAM, networking, audits
  • Lower AWS bills without slowing your team down
  • Hands-on help with AI workloads on AWS