configure-aws-credentials action
The AWS-maintained action that exchanges a job's OpenID Connect token for temporary credentials of a named role.
In more detail
Given role-to-assume and aws-region inputs, it requests the token, calls AssumeRoleWithWebIdentity and exports the temporary credentials for later steps. No stored key is needed at all.
Related terms
- AssumeRoleWithWebIdentity — The AWS STS operation that exchanges a token from a trusted identity provider for temporary credentials of one IAM role.
- id-token: write — The workflow permission that allows a job to request a GitHub OpenID Connect token.
- IAM role — A cloud identity with permissions but no password, which trusted users or workloads temporarily assume.
Taught in
- Keyless Authentication: OIDC to the Cloud — Continuous Integration & Continuous Delivery Pipelines
- Governing Actions: Allow Lists, SHA Pinning And Rulesets — GitHub Actions (GH-200) Exam Prep
- OIDC: Cloud Access Without Stored Keys — GitHub Actions (GH-200) Exam Prep
References
- aws-actions/configure-aws-credentials on GitHub
- GitHub Docs: Configuring OpenID Connect in Amazon Web Services