policy evaluation logic
The fixed order AWS uses to decide a request: an explicit deny wins, otherwise any allow wins, otherwise the answer is deny.
In more detail
AWS collects every policy that applies to the caller, the resource and the request. A matching explicit deny ends it; failing that, a matching allow is enough; failing that, the implicit deny stands. The policy simulator runs this same engine.
Related terms
- explicit deny — A policy statement with Effect Deny that matches a request, which refuses it no matter what any other policy allows.
- implicit deny — The refusal a permission system gives when no rule allows a request, even though nothing explicitly denied it.
- IAM policy simulator — A free IAM tool that tells you whether a policy, or an existing identity, would allow a given action on a given resource, without doing anything.
- permissions boundary — A policy that sets the maximum permissions a user or role can ever have, whatever its other policies allow.
- service control policy — An AWS Organizations policy that sets the maximum permissions for every identity in the accounts it is attached to, without granting anything.
Taught in
- Seven Ways To Leave A Rack — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Cloud Concepts Sprint: Twelve Cards — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- The Root Key In The Backup Script — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Policy Evaluation: Deny Wins, And Both Accounts Must Agree — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- The Shared Responsibility Model — Cloud Infrastructure & Hyperscaler Architecture
- Policies and Least Privilege — Cloud Infrastructure & Hyperscaler Architecture
- Policy Simulation and Dry Runs — Cloud Infrastructure & Hyperscaler Architecture
- Cloud IAM Architecture & Permission Boundaries — Cloud Security & DevSecOps Engineering
- Cross-Account AssumeRole Chains & Temporary STS — Cloud Security & DevSecOps Engineering
- Least Privilege Enforcement & CIEM Architecture — Cloud Security & DevSecOps Engineering
- Envelope Encryption & Data Protection with KMS — Cloud Security & DevSecOps Engineering