AWS · Identity · Resource-Side Authorization
AWS Resource Policy Evaluation
Intermediate LAB for understanding how AWS resource-based policies participate in authorization decisions alongside identity policies, permission boundaries, SCPs, and explicit deny.
Overview
Resource policies define who can access a resource and under what conditions. They are essential for cross-account access, resource-side explicit deny, and trust-policy reasoning.
Concept Deep Dives
Expand these concepts when studying resource-side authorization or explaining cross-account access.
What is a resource policy?
A resource policy is a policy attached to a resource. It defines which principals may access that resource and which conditions must be true for access to succeed.
How is a resource policy different from an identity policy?
An identity policy is attached to a principal and says what the principal may request. A resource policy is attached to a resource and says who the resource trusts or denies.
Why do resource policies matter for cross-account access?
Cross-account access often requires the resource to explicitly trust an external principal. Without the resource-side trust, the external principal may be blocked even if its own account allows the request.
What is a role trust policy?
A role trust policy is a resource-based policy attached to an IAM role. It controls which principals are allowed to assume the role.
What should executives understand?
Resource policies can expose sensitive assets or trust external identities. They must be reviewed as part of enterprise identity governance, not only as application configuration.
Visual Resource Policy Model
Resource policy reasoning is easiest when viewed as a two-sided authorization decision.
Example Scenario
A role has an identity policy allowing S3 object access, but the bucket policy denies access unless the request comes through an approved VPC endpoint.
Identity policy: s3:GetObject allowed
Resource policy: deny unless aws:sourceVpce matches approved endpoint
Final decision: DENY when the request violates the resource policy condition
Bridge to Principal LABs
Resource policy evaluation prepares learners for advanced identity paths because cross-account trust depends on resource-side authorization.
Governance Boundary
This lab is read-only and deterministic.
Runtime = source of truth
OPA = decision authority
Aegis = bounded intelligence
Frontend = rendering only
- Does not exploit AWS
- Does not mutate infrastructure
- Does not deploy live resources
- Does not issue runtime tokens
- Does not override OPA
Source Artifacts
metadata.jsonarchitecture.mdindex.html