IAM vocabulary: identities, policies, resources, actions
coreintermediateAn IAM policy is a JSON document that answers one question: can this identity take this action on this resource, under these conditions? Every other IAM concept is a variation on how that document is written or attached.
Think of it as
A policy is a sentence with four blanks: WHO (the identity), CAN DO WHAT (the action), TO WHICH THING (the resource), UNDER WHAT CIRCUMSTANCES (the condition). Every IAM feature — roles, boundaries, SCPs — is a different way of filling in or constraining those same four blanks.
What we're doing: Read a real policy statement as the four elements it is built from.
- 5
- Effect is Allow — IAM defaults to deny, so this statement exists to open a specific door.
- 6
- Action lists exactly two API operations — not a wildcard, not "all S3 actions."
- 7
- Resource scopes to one bucket by ARN, not every bucket in the account.
- 9
- Condition narrows further: even a matching identity/action/resource is denied outside this IP range.
Why this works: Reading any IAM policy is the same four-question exercise: who, what, on which resource, under what condition. A statement missing Condition simply has no extra restriction — it is not a different kind of policy.
Treating a wildcard Resource as "just for now"
Wrong
Better
What you see: The policy works immediately during testing, then quietly grants read access to every bucket in the account, including ones created months later.
Why: "*" in Resource is not a placeholder — it matches every object in every bucket the identity could ever reach, forever, not just the one bucket being tested against right now.
- Identity — who is asking
- Action — what they want to do
- Resource — which thing, by ARN
- Condition — under what circumstances
The four parts of every IAM policy statement
Together
Remember: Every IAM policy answers who, what action, on which resource, under what condition — every other IAM feature is a variation on those four parts.
See also: policy types and trust · least privilege and evaluation

