Interview Prep/Terraform/CI/CD and Automation

How do you gate production applies?

AdvancedProductionCI/CD and Automation
Answer

GitHub Environments with required reviewers (or GitLab protected environments), branch protection on main, CODEOWNERS for sensitive paths, and applying only the saved plan that was reviewed. For the highest-risk stacks (IAM, networking) require two approvers and a change ticket reference. Auto-apply on dev; manual on prod.

All Terraform questions Roadmap: Terraform in production

More on CI/CD and Automation