01Chapter 1: What AWS evaluates: the request and its contextEvery call to AWS, whether from the console, the CLI, or an SDK, becomes a request. Before any policy is read, AWS gathers the facts about that request. The policies are then matched against those facts. This chapter covers what the facts are, because every later rule in this tutorial depends on the3 min read
02Chapter 2: The policy types at a glance: grant versus limitThis chapter assumes you know what IAM users, groups, and roles are, can read JSON, and know what an API action and an ARN look like. It does not cover evaluation order yet. It sorts the policy types into two groups so that later chapters have a frame to hang on.2 min read
03Chapter 3: Reading a policy documentThis chapter assumes you know what an AWS account, an IAM role, an API action, and an ARN are, and that you can read JSON. Every IAM policy is a JSON document with the same few parts. Once you can read those parts, you can read any policy in the rest of this tutorial.2 min read
04Chapter 4: The core rule: default deny, explicit deny, allowThis chapter assumes you can read IAM policy JSON, know what an action and an ARN are, and have used IAM users and roles. Every request to AWS ends in one of two outcomes: allowed or denied. The core rule decides which.3 min read
05Chapter 5: Identity-based policiesThis chapter assumes you know what IAM users, groups, and roles are, can read JSON, and know what an action and an ARN look like. It covers identity-based policies: what they attach to, how they grant access, and the mistakes people make with them.3 min read
06Chapter 6: Resource-based policiesThis chapter assumes you can read IAM JSON, know what an ARN is, and have met identity-based policies in the previous chapter. Here you will see how a policy attached to a resource changes the evaluation.3 min read
07Chapter 7: Narrowing statements with conditionsThis chapter assumes you can read an IAM policy statement (Effect, Action, Resource) and know that an explicit deny overrides any allow. Both come from earlier chapters.3 min read
08Chapter 8: Same-account and cross-account requestsThis chapter assumes you know the default-deny rule, that an explicit deny beats any allow, and how identity-based and resource-based policies are written. Here you will see how the account boundary changes how those policies combine.3 min read
10Chapter 10: Session policies for temporary credentialsThis chapter assumes you know how identity policies and permission boundaries work, and that an explicit deny always beats an allow. Here you will see how a session policy narrows the permissions of one temporary session.3 min read
11Chapter 11: Service control policies in AWS OrganizationsThis chapter assumes you know how identity-based policies, resource-based policies, and permission boundaries combine, and that you have used AWS Organizations at a basic level (an organization, a management account, member accounts, and organizational units).3 min read
12Chapter 12: Resource control policies and VPC endpoint policiesThis chapter assumes you know the core rule (default deny, explicit deny wins, otherwise at least one allow). It also assumes you know what SCPs and resource-based policies do. Two more guardrails remain. Neither grants permissions. Both only limit them.2 min read
13Chapter 13: The full evaluation flow, step by stepThis chapter assumes you know the earlier pieces: identity policies, resource policies, permission boundaries, session policies, SCPs, and the rule that an explicit deny beats an allow. Here we combine them into one decision procedure.2 min read
14Chapter 14: Debugging AccessDenied with the policy simulator and CloudTrailThis chapter assumes you know the evaluation rule (default deny, explicit deny wins, otherwise at least one allow). It also assumes you can read an IAM policy in JSON. You will use these tools to find which policy causes an unexpected AccessDenied.3 min read