A role has an entrance and a set of permissions
How role trust policies enable role assumption across accounts and federation from external identity providers without creating permanent IAM-user credentials. · associate
An IAM role is an identity with permissions that another identity can temporarily assume. Unlike an IAM user, a role has no permanent password or access keys. Assuming it creates a role session with temporary credentials.
A role's trust policy controls who can assume it. It identifies a trusted Principal, allows the appropriate role-assumption action, and can require conditions. The role's permissions policies define what the resulting session can do with AWS resources.
These are separate decisions. Trusting someone to assume a role does not itself grant permission to read a bucket. Likewise, attaching bucket-read permissions to a role does not let everyone assume it.
| Policy | Question answered | Typical content |
|---|---|---|
| Role trust policy | Who may assume it? | Principal and assumption conditions |
| Role permissions policy | What may the session do? | Resource actions and resources |
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.