ExitAWS STS: Assuming roles for temporary access1 / 10
Explanation

Permission to ask, and trust to enter

How AssumeRole uses caller permissions and role trust to issue temporary credentials for role switching and cross-account access, with permissions and duration bounded by the role session. · associate

AssumeRole lets an authenticated caller obtain temporary credentials for an IAM role. Use it to switch responsibilities within an account or access another account without sharing that account's long-term credentials.

For cross-account access, both sides must authorize the request. The caller needs permission for sts:AssumeRole on the target role ARN. The target role's trust policy must allow that caller to assume it. Granting only one side is not enough.

Trust conditions, such as an MFA requirement or an external ID, must also be satisfied, and applicable explicit denies still block access. Within one account, a trust policy that directly names an IAM user can grant assumption without a separate identity-policy allow; do not apply that exception to cross-account access.

AuthorizationWhere it appliesQuestion answered
Caller permissionCalling identityMay I assume this role?
Role trust policyTarget roleMay this caller enter?

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.