Interview Prep/Terraform/Testing and Policy as Code

What do you run on pull requests versus nightly?

IntermediateProductionTesting and Policy as Code
Answer

Per PR: fmt, validate, tflint, policy scan, plan, mock-provider tests and cost diff, so feedback arrives in a few minutes. Nightly or on merge: real-apply integration tests, drift detection plans for every stack and dependency update checks. Anything slow and expensive stays off the PR path, otherwise people bypass it.

All Terraform questions Roadmap: Terraform in production

More on Testing and Policy as Code