AssumeRoleWithWebIdentity

The AWS STS operation that exchanges a token from a trusted identity provider for temporary credentials of one IAM role.

In more detail

A trust policy for keyless deploys allows only this action. Tools such as the configure-aws-credentials action call it for you, but it can also be done by hand with the AWS CLI.

Example

aws sts assume-role-with-web-identity --role-arn arn:aws:iam::123456789012:role/github-deploy --role-session-name deploy-checkout --web-identity-token "$TOKEN"

Related terms

Taught in

References