Skip to content
IAM Policy Generator

Trust policy

A trust policy is the resource-based policy attached to an IAM role that names which principals may assume the role, and under which conditions. It answers who can become the role, while the role's permission policies answer what the role can do afterward. IAM supports this as its only resource-based policy type.

All terms ยท Open the workbench

An example, sourced

AWS states that the IAM service supports only one type of resource-based policy, called a role trust policy, which is attached to an IAM role, and that a role is both an identity and a resource, so it takes a trust policy and an identity-based policy.

Why it matters here

A narrow permission policy protects little if the trust policy lets the wrong caller assume the role. The workbench flags a trust statement for another account or a service that has no guard condition.

Sources

  1. https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html, read 16 Nov 2026

Last reviewed 16 Nov 2026.