Which pre-commit hooks do you recommend?
BeginnerProductionCI/CD and Automation
Answer
With antonbabenko/pre-commit-terraform: terraform_fmt, terraform_validate, terraform_tflint, terraform_docs, terraform_checkov or terraform_trivy, plus generic detect-private-key and check-merge-conflict. They give developers feedback in seconds; CI repeats the same checks because hooks can be skipped.
More on CI/CD and Automation
Why run Terraform from a pipeline instead of laptops?BeginnerWhat stages does a good Terraform pull-request pipeline have?BeginnerHow do you make sure the apply runs exactly what was reviewed?IntermediateHow do you serialize applies to the same stack in CI?AdvancedShow a minimal GitHub Actions workflow for plan on PR.BeginnerHow does OIDC authentication from GitHub Actions to AWS work?Intermediate