Interview Prep/Terraform/Testing and Policy as Code

Which hooks does pre-commit-terraform provide?

BeginnerProductionTesting and Policy as Code
Answer

terraform_fmt, terraform_validate, terraform_docs, terraform_tflint, terraform_checkov, terraform_trivy, terraform_providers_lock and terrascan, configured through .pre-commit-config.yaml. Install with pre-commit install, and run pre-commit run -a in CI.

All Terraform questions Roadmap: Terraform in production

More on Testing and Policy as Code