Interview Prep/Terraform/CI/CD and Automation

What stages does a good Terraform pull-request pipeline have?

BeginnerProductionCI/CD and Automation
Answer

On every PR: terraform fmt -check -recursive, init -backend=false plus validate, tflint, Checkov or Trivy, then plan -out with the plan summary posted as a PR comment and cost estimate from Infracost. On merge to main: apply the reviewed plan to dev automatically and to higher environments after approval. Fast checks first, expensive ones later.

All Terraform questions Roadmap: Terraform in production

More on CI/CD and Automation