Interview Prep/Terraform/Pipelines Terraform Cloud and OpenTofu

Which CI gates would you require on every infrastructure PR?

BeginnerScenarioPipelines Terraform Cloud and OpenTofu
Answer

Situation read → A baseline.

What I'd do →

  1. terraform fmt -check -recursive
  2. terraform validate
  3. tflint --recursive
  4. checkov -d . or trivy config .
  5. terraform plan with output on the PR
  6. 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.

All Terraform questions Roadmap: Terraform in production

More on Pipelines Terraform Cloud and OpenTofu