Interview Prep/Terraform/Testing and Policy as Code

What does Trivy offer for Terraform?

BeginnerProductionTesting and Policy as Code
Answer

trivy config . scans Terraform (and Kubernetes, Dockerfiles) for misconfigurations using the former tfsec rules and Rego-based checks, outputs SARIF for GitHub code scanning and supports --ignorefile. It can evaluate variables and modules but, as with any static scan, plan JSON gives the most accurate results.

All Terraform questions Roadmap: Terraform in production

More on Testing and Policy as Code