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.
More on Testing and Policy as Code
How do you test infrastructure code, and what does the testing pyramid look like?BeginnerWhat does tflint do, and how is it configured?BeginnerHow do Checkov and Trivy differ?IntermediateHow does `terraform test` work?BeginnerHow do mock providers work in `terraform test`?AdvancedWhen do you use Terratest instead of `terraform test`?Intermediate