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.
More on CI/CD and Automation
Why run Terraform from a pipeline instead of laptops?BeginnerWhat stages does a good Terraform pull-request pipeline have?BeginnerHow do you make sure the apply runs exactly what was reviewed?IntermediateHow do you serialize applies to the same stack in CI?AdvancedShow a minimal GitHub Actions workflow for plan on PR.BeginnerHow does OIDC authentication from GitHub Actions to AWS work?Intermediate