resource-based policy
An IAM policy attached to a resource, such as a bucket, queue or encryption key, that names which principals may use it.
In more detail
Because it lives on the thing rather than the caller, a resource-based policy must contain a Principal field. That is what lets one account grant access to a principal in another account. A bucket policy and a role trust policy are both resource-based policies.
Related terms
- identity-based policy — An IAM policy attached to a user, group or role, which travels with that caller wherever it goes.
- bucket policy — A resource-based policy attached to an S3 bucket that says which principals may perform which actions on it and its objects.
- trust policy — A JSON document on a cloud role that says who may assume the role and under which conditions.
- principal — The identity making a request, such as a user, a role session or a service, that an access policy allows or denies.
- key policy — The resource policy on a KMS key that decides who may manage and use it; every key has exactly one.
- IAM Access Analyzer — An AWS service that proves which resources can be reached from outside a chosen zone of trust and finds unused access.
Taught in
- EventBridge Rules: The Rule That Matched Nothing — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- Identity At Scale: The Boundary That Blocked The Admin — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- Policy Evaluation: Deny Wins, And Both Accounts Must Agree — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Many Accounts: Organizations, SCPs And Control Tower — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Who Signs In: Identity Center, STS And Cognito — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Policies and Least Privilege — Cloud Infrastructure & Hyperscaler Architecture
- AWS Organizations, Account Hierarchies & Azure Management Groups — Cloud Security & DevSecOps Engineering
- Least Privilege Enforcement & CIEM Architecture — Cloud Security & DevSecOps Engineering