Pre-commit hook that will run terraform fmt -write=true
on .tf|.tfvars files.
Add the following block to your .pre-commit-config.yaml
- repo: https://github.com/CyberGRX/terraform-linter
rev: master
hooks:
- id: terraform-linter
Public repo: https://hub.docker.com/r/cybergrx/terraform-linter