Terraform on AWS: Nonprod and Production Environments · Operations: Monitoring, Cost, CI/CD and Go-Live

GitHub Actions Pipeline: OIDC, Plan on PR and Apply with Approval

Build a GitHub Actions workflow that authenticates to AWS using OIDC (no stored keys), runs terraform plan on every pull request, and applies to production only after a manual approval step.

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

What you'll build

An IAM OIDC identity provider for GitHub Actions, a per-environment IAM role that trusts the OIDC provider scoped to your repository and environment, and a GitHub Actions workflow with three jobs: plan on every pull request, apply-nonprod on merge to main, and apply-prod after a manual approval gate.

Premium course

Keep reading with a membership

The rest of this lesson, its practice questions and the whole Terraform on AWS: Nonprod and Production Environments course are part of the membership.

See plans Sign in

Open in the app to mark lessons complete, take notes and track your progress.

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

Was this page helpful?

Report a mistake