Lion Cipher Lab

Cap privileges safely with an IAM permissions boundary

Why it matters

The most dangerous assumption in cloud IAM is that the permissions policy you attached is the whole story. It is not. An identity's permissions policy says what it is ALLOWED to try; a permissions boundary says the MAXIMUM it can ever actually do — and the real, effective permission is the INTERSECTION of the two. A boundary grants nothing on its own; it only caps. That one idea unlocks the single most important delegation pattern in AWS: safely letting a 'team admin' create roles and users for their squad WITHOUT letting them (or the principals they create) escalate to full account takeover.…

What you'll learn

Steps in this lab

  1. The one idea: a boundary is a ceiling, not a grant
  2. Who wins: boundary vs SCP vs identity policy vs session policy
  3. Safety setup: confirm your identity and capture your account id
  4. Create the boundary policy (the ceiling: S3 + CloudWatch only)
  5. Create a throwaway role with AdministratorAccess AND the boundary
  6. Assume the role through a named profile (no long-lived keys)
  7. Prove the cap: AdministratorAccess attached, yet DENIED
  8. Confirm it offline with the IAM Policy Simulator
  9. The killer use case: safe delegation with iam:PermissionsBoundary
  10. Clean up: delete every test resource
  11. When a boundary is the right tool — and when it is not

Open the full interactive lab →