Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 03 · DevOps · Regions, networks and doors · about 22 min to read

Play it as a journeyTutor comes with a plan

IAM & Identity

IAM & Identity
IAM & Identity · Open board

The guard that checks every single action, drawn as one flow with a fixed order of questions. It states the headline right: one explicit “no” beats any number of “yes”es. The flow it draws is correct for one account acting inside itself. This lesson is that guard’s rulebook written out properly, plus what changes the moment two accounts are involved.

Before you start. AWS Identity and Access Management (IAM) is the part of Amazon Web Services that decides who may do what, and it keeps two things apart: who you are and what you may do. Who you are is your login, the identity AWS knows you as once you’re signed in. This note calls that your badge. What you may do is written down in a policy, a list of allowed actions. You attach that list to one person, to a group of people, or to a role, a hat a program or a person puts on for a while and takes off again. Why So Many Boxes? Identity vs Permission explains why AWS splits things this way, and The Badge Machine, IRSA end to end and OIDC, the Passport & the Stamp-Book how a badge gets handed out. You need none of them first. This note asks one narrower question: when several attached lists all have an opinion about the same request, which one wins.

Lesson 31 of 70 in DevOps

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • June 17, 2014: the login that could delete its own backup
  • The question that actually decides it
  • One no beats every yes
  • The ceiling that only subtracts
  • Least privilege: the fix Code Spaces didn’t have
  • The policy types, all of them
  • The evaluation order, exactly
  • Same account versus across two
  • A borrowed role versus a stolen password
  • How a workload actually gets its credentials
  • Least privilege, and why it resists you
  • Reading a denial instead of guessing at one

Terms it explains: policy, group, role, one, Explicit deny, allow, implicit deny, Resource-based policy, guardrail, Least privilege, Identity-based policy, role's own trust policy, Permissions boundary, Service control policy (SCP), Session policy, Resource control policy (RCP), VPC endpoint policies, S3 ACLs, any, OR, user's, role's, IAM Roles Anywhere, external ID, IMDSv2, task role, EKS Pod Identity, environment variables, conditions, IAM Access Analyzer, Access Advisor, implicit, open, Denied, explicit.

Review DevOps