Interview Prep/Terraform/Testing and Policy as Code

What does the static-analysis layer catch?

BeginnerProductionTesting and Policy as Code
Answer

fmt -check enforces style, validate catches syntax, type and reference errors, tflint finds provider-specific mistakes (invalid instance types, deprecated syntax, unused declarations), and secret scanners catch leaked keys. All run in seconds without credentials, so they run on every commit.

All Terraform questions Roadmap: Terraform in production

More on Testing and Policy as Code