Inline policy
Facts read 16 Nov 2026. Page reviewed 16 Nov 2026.
An inline policy is a policy embedded in one IAM user, group or role, with a strict one-to-one relationship to that identity. It is deleted when the identity is deleted. IAM adds the sizes of all inline policies on an entity together and checks that total against a limit of 2,048 to 10,240 characters.
All terms ยท Open the workbench
An example, sourced
AWS says an inline policy is created for a single IAM identity and maintains a strict one-to-one relationship with it, and that when a policy could apply to more than one entity it is better to use a managed policy. AWS's diagram shows two roles with the same permissions, each holding its own copy.
Why it matters here
Inline copies of the same permissions can drift apart, and each one has to be read separately. The workbench reads the JSON of an inline policy the same way as any other.
Related pages
Sources
- https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_managed-vs-inline.html, read 16 Nov 2026
Last reviewed 16 Nov 2026.