Obtain credentials from a web identity token.
Section: STS Identity and Sessions
Assume role with web identity
bash
bash
aws sts assume-role-with-web-identity --role-arn arn:aws:iam::123456789012:role/GitHubOIDC --role-session-name ci --web-identity-token file://token.jwtExplanation
Common in OIDC-based CI/CD integrations.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing STS Identity and Sessions