Skip to content

rwxlabs/tf-pre-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform pre-commit hook

Terraform pre-commit hook with terraform_fmt and terraform_validate.

Usage

Install the pre-commit package by Yelp

brew install pre-commit

Once pre-commit is installed, copy the below example .pre-commit-config.yaml to your project repository.

- repo: git://github.com/rwxlabs/tf-pre-commit
  sha: v1.0.1
  hooks:
  - id: terraform_validate
  - id: terraform_fmt

Next run pre-commit install from within your repository to install the hook.

Test the hook by running pre-commit run --all-files. This should flag issues if there are any.

Credits

Original hook by antonbabenko

About

Terraform pre-commit hook with terraform_fmt and terraform_validate

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages