pre-commit-terraform

pre-commit git hooks to take care of Terraform configurations 🇺🇦 (by antonbabenko)

Pre-commit-terraform Alternatives

Similar projects and alternatives to pre-commit-terraform

  1. semver

    Semantic Versioning Specification

  2. 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.

    InfluxDB logo
  3. 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.

  4. pre-commit

    A framework for managing and maintaining multi-language pre-commit hooks.

  5. act

    Run your GitHub Actions locally 🚀

  6. atlantis

    Terraform Pull Request Automation

  7. terraformer

    CLI tool to generate terraform files from existing infrastructure (reverse Terraform). Infrastructure to Code

  8. trivy

    Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. infracost

    Cloud cost estimates for Terraform in pull requests💰📉 Shift FinOps Left!

  11. terraform-aws-eks

    Terraform module to create Amazon Elastic Kubernetes (EKS) resources 🇺🇦

  12. terragrunt

    Terragrunt is a flexible orchestration tool that allows Infrastructure as Code written in OpenTofu/Terraform to scale.

  13. checkov

    Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code, container images and open source packages with Checkov by Bridgecrew.

  14. terratest

    Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.

  15. terraform-docs

    Generate documentation from Terraform modules in various output formats

  16. tflint

    A Pluggable Terraform Linter

  17. tfsec

    Tfsec is now part of Trivy

  18. pre-commit-hooks

    Some out-of-the-box hooks for pre-commit

  19. tfenv

    Terraform version manager

  20. terraform-aws-vpc

    Terraform module to create AWS VPC resources 🇺🇦

  21. plantuml-githook

    A Git hook which spots PlantUML source files and generates diagrams in a structured way

  22. terraform-module-template

    A repo template to create Terraform modules with CICD already configured.

  23. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better pre-commit-terraform alternative or higher similarity.

pre-commit-terraform discussion

Log in or Post with

pre-commit-terraform reviews and mentions

Posts with mentions or reviews of pre-commit-terraform. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-04-21.
  • Pre-commit hooks for Terraform
    2 projects | dev.to | 21 Apr 2025
    [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
    10 projects | dev.to | 2 Jan 2025
    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
    5 projects | dev.to | 6 Sep 2024
    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
    3 projects | dev.to | 28 Jun 2024
    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?
    3 projects | /r/devops | 9 Mar 2023
    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
    11 projects | dev.to | 22 Dec 2022
  • Trying to learn pre-commit - how to handle multiple hooks in a small monorepo with different paths?
    1 project | /r/devops | 16 Oct 2022
  • List of most useful Terraform open-source tools
    14 projects | /r/Terraform | 28 Aug 2022
    https://github.com/antonbabenko/pre-commit-terraform because Terraform/Terragrunt configs should be documented, tidy and valid all the time :)
  • Terraform Module Template
    13 projects | /r/devops | 19 Jul 2022
    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
    5 projects | dev.to | 17 Jul 2022
    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
    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 →

Stats

Basic pre-commit-terraform repo stats
17
3,407
9.4
5 days ago

Sponsored
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.
www.influxdata.com

Did you know that Shell is
the 11th most popular programming language
based on number of references?