Opscraft
AWS cloud

AWS IAM & multi-account security

New7 lessons · 26 min · 3 tests ·

IAM is the most-asked AWS security topic in DevOps interviews, and the one where vague answers are easiest to spot. A senior engineer must be able to read and write policies, explain how AWS evaluates them, set up roles for CI and Kubernetes workloads without long-lived keys, design a multi-account organisation with guardrails, and investigate an access-denied error or a leaked key methodically.

Stage 2 · Core tools

Know these first

After this topic you can

  • Write least-privilege IAM policies and roles
  • Explain how a request is authorised, including SCPs and boundaries
  • Set up a secure multi-account structure

Lessons

  1. 1Identities and credentials 3 min read
    • Principals
    • STS and role assumption
  2. 2Policies: types and structure 5 min read
    • Policy document anatomy
    • Policy types
    • Policy evaluation logic
  3. 3Roles for workloads 4 min read
    • EC2, Lambda, ECS
    • EKS: IRSA and Pod Identity
    • CI/CD: OIDC federation
    • Cross-account deploy roles
  4. 4Least privilege in practice 3 min read
    • Getting to least privilege
    • ABAC (attribute-based access control)
    • Permissions boundaries for delegation
    • Privilege escalation paths to know
  5. 5AWS Organizations and multi-account strategy 3 min read
    • Why multiple accounts
    • Typical structure (Control Tower / landing zone)
    • Service Control Policies
    • Identity Center (SSO)
  6. 6Detection, audit and incident response 4 min read
    • The detective stack
    • Leaked access key — the runbook
    • Debugging AccessDenied
  7. 7Interview questions and model answers 4 min read
    • "How does AWS evaluate whether a request is allowed?"
    • "Role vs user?"
    • "How does IRSA work?"
    • "What are SCPs and what can't they do?"
    • "How do you implement least privilege at scale?"
    • "A developer's access key was found on a public GitHub repo. What do you do?"
    • "Why use multiple AWS accounts?"
    • "What's the confused deputy problem and how does External ID help?"