InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →
Pre-commit-terraform Alternatives
Similar projects and alternatives to pre-commit-terraform
-
-
InfluxDB
InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
-
terraform
Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
-
-
-
-
terraformer
CLI tool to generate terraform files from existing infrastructure (reverse Terraform). Infrastructure to Code
-
trivy
Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
-
terragrunt
Terragrunt is a flexible orchestration tool that allows Infrastructure as Code written in OpenTofu/Terraform to scale.
-
checkov
Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code, container images and open source packages with Checkov by Bridgecrew.
-
terratest
Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.
-
-
-
-
-
-
-
plantuml-githook
A Git hook which spots PlantUML source files and generates diagrams in a structured way
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
pre-commit-terraform discussion
pre-commit-terraform reviews and mentions
-
Pre-commit hooks for Terraform
[INFO] Initializing environment for https://github.com/antonbabenko/pre-commit-terraform. Terraform fmt........................................(no files to check)Skipped [enable-pre-commit 1ce5d93] install terraform fmt pre-commit hook
-
Terraform Cookbook: Development Environment Recipe
source ~/.venv/bin/activate echo "# cooking a new module" >> main.tf git add main.tf git commit -m "Cooking a new module" # [INFO] Initializing environment for https://github.com/antonbabenko/pre-commit-terraform. # [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. # [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. # [INFO] Once installed this environment will be reused. # [INFO] This may take a few minutes... # Terraform validate.......................................................Passed # Terraform fmt............................................................Passed # Terraform validate with tflint...........................................Passed # Terraform validate with trivy............................................Passed # Terraform validate with Checkov..........................................Passed # Terraform docs...........................................................Passed # Pre-commit detect AWS credentials........................................Passed # Pre-commit detect private keys...........................................Passed # Pre-commit fix end of files..............................................Passed # Pre-commit remove trailing whitespaces...................................Passed
-
How to Estimate Cloud Costs with Terraform and InfraCost
repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.3.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/antonbabenko/pre-commit-terraform rev: v1.72.2 hooks: - id: terraform_fmt - id: terraform_tflint - id: infracost_breakdown args: - --args=--path=./ verbose: true # Always show costs - id: terraform_validate
-
Infrastructure Essentials Part 1: A Terraform Recipe for Success
repos: # pre-commit install --hook-type pre-push - repo: https://github.com/pre-commit/pre-commit-hooks # Generic review/format rev: v4.6.0 hooks: - id: end-of-file-fixer - id: no-commit-to-branch args: ["--branch", "master"] - id: trailing-whitespace - repo: https://github.com/igorshubovych/markdownlint-cli # Format markdown rev: v0.40.0 hooks: - id: markdownlint args: ["--fix", "--disable", "MD036"] - repo: https://github.com/antonbabenko/pre-commit-terraform rev: v1.89.1 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases hooks: - id: terraform_fmt - id: terraform_tflint - id: terraform_validate args: - --args=-json - --args=-no-color - id: terraform_docs args: - --hook-config=--path-to-file=README.md - --hook-config=--add-to-existing-file=true
-
whats your development process for github actions and how are you testing them?
Personally I use pre-commit with some of these hooks in addition to some default hooks. It's basically a localised CI pipeline, and also means every commit has passed checks so keeps your commit history neat. Way faster to develop infrastructure code and fix issues than having to keep pushing to the remote repo and waiting for an Action to run.
- Breve guia de sobrevivência com Terraform
- Trying to learn pre-commit - how to handle multiple hooks in a small monorepo with different paths?
-
List of most useful Terraform open-source tools
https://github.com/antonbabenko/pre-commit-terraform because Terraform/Terragrunt configs should be documented, tidy and valid all the time :)
-
Terraform Module Template
Local testing with pre-commit-terraform. Formats code with terraform fmt Validates code with terraform validate Automatic README updates with terraform-docs. Static code analysis with TFLint, tfsec and checkov.
-
Hugo no theme
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ca47c31..3e5cfef 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,10 @@ repos: rev: v2.7.1 hooks: - id: prettier - types_or: [yaml, markdown, json] + types_or: [yaml, markdown, json, html] + additional_dependencies: + - "[email protected]" + - "[email protected]" - repo: https://github.com/antonbabenko/pre-commit-terraform rev: v1.74.1 hooks:
-
A note from our sponsor - InfluxDB
www.influxdata.com | 12 May 2025
Stats
antonbabenko/pre-commit-terraform is an open source project licensed under MIT License which is an OSI approved license.
The primary programming language of pre-commit-terraform is Shell.
Popular Comparisons
- pre-commit-terraform VS checkov
- pre-commit-terraform VS terraform-docs
- pre-commit-terraform VS plantuml-githook
- pre-commit-terraform VS pre-commit-hooks
- pre-commit-terraform VS terraform-provider-sops
- pre-commit-terraform VS terragrunt
- pre-commit-terraform VS tfsec
- pre-commit-terraform VS terraform-aws-eks
- pre-commit-terraform VS atlantis
- pre-commit-terraform VS tflint