Resource-based policy
Facts read 16 Nov 2026. Page reviewed 16 Nov 2026.
A resource-based policy is an inline policy attached to a resource, such as an S3 bucket, that grants a named principal permission to act on that resource. The principal can be in the same account or another one. IAM has no managed resource-based policies, and the only IAM example is the role trust policy.
All terms ยท Open the workbench
An example, sourced
AWS says that when the principal and the resource are in separate accounts, an identity-based policy must also grant the principal access, while a same-account principal named in the resource-based policy needs no additional identity-based policy.
Why it matters here
Access can arrive through the resource side without appearing in the identity policy, so a review of identities alone is incomplete.
Related pages
Sources
- https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html, read 16 Nov 2026
Last reviewed 16 Nov 2026.