Permissions from both sides of a request
How resource policies interact with identity permissions, including access-point ARNs, invocation actions, and source-VPC or endpoint conditions that restrict ingestion and data access. · associate
An identity-based policy describes what a user or role may do. A resource-based policy is attached to a supported resource, such as an S3 bucket or Lambda function, and describes which principals may access it. Its Principal identifies an account, role, user, or AWS service receiving permission.
For ordinary same-account requests, identity and resource permissions generally contribute allows together; it is not a universal rule that both must contain an allow. Principal-specific evaluation rules and other controls still apply. For cross-account access, normally arrange permission on both sides: the caller's identity policy permits the action, and the resource policy trusts the caller.
An applicable explicit deny overrides an allow. Resource policies do not bypass organization controls or every limit on a role session. Start by identifying the caller, action, resource, and conditions rather than assuming that one allow guarantees access.
| Policy | Attached to | Main question |
|---|---|---|
| Identity-based | User, group, or role | What may this identity do? |
| Resource-based | Supported resource | Who may access this resource? |
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.