Terraform interview question

How do you configure OIDC authentication between GitHub Actions and AWS for Terraform pipelines?

How you'd do it Asked in DevOps Engineer · Cloud Engineer · Site Reliability Engineer (SRE) interviews

Members can save this page, take notes and track progress. See membership · Sign in

Summary

Create an aws_iam_openid_connect_provider for GitHub's OIDC endpoint and an IAM role whose trust policy restricts the sub claim to a specific repository and environment. The GitHub workflow uses aws-actions/configure-aws-credentials to assume the role with no long-lived secrets.

Keep reading with a membership

The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.

See plans and free trial Already a member? Sign in

More Terraform questions

← All Terraform questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake