Which CI gates would you require on every infrastructure PR?
BeginnerScenarioPipelines Terraform Cloud and OpenTofu
Answer
Situation read → A baseline.
What I'd do →
terraform fmt -check -recursiveterraform validatetflint --recursivecheckov -d .ortrivy config .terraform planwith output on the PR- Policy checks on the plan
Why → Each gate is cheap and each catches a different class of mistake.
Interview tip → Fail fast: run cheap checks first.
More on Pipelines Terraform Cloud and OpenTofu
Build a basic GitHub Actions pipeline: plan on pull request, apply on merge to main.BeginnerReviewers can't read raw plan logs. How do you present the plan in the PR?IntermediateTwo PRs merge close together and both apply to the same stack. What prevents trouble?IntermediateHow do you add a manual approval before prod applies?IntermediateCompare Atlantis, HCP Terraform and a hand-built GitHub Actions pipeline.IntermediateA saved plan was approved yesterday and apply fails because main changed. How do you avoid dead approvals?Intermediate