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.
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.
Open in the app to mark lessons complete, take notes and track your progress.