# 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.

## 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

- [Permissions boundary: meaning and an example](/glossary/permissions-boundary/)
- [Service control policy: meaning and an example](/glossary/service-control-policy/)
- [Resource control policy: meaning and an example](/glossary/resource-control-policy/)
- [All of them](/glossary/)

## Sources

- https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html (read 16 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://iampolicygenerator.com/glossary/resource-based-policy/

This site is not affiliated with Amazon Web Services. AWS service and product names are used only to describe AWS services.
