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

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

    SaaSHub 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. atlantis

    Terraform Pull Request Automation

  6. trivy

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

  7. terraformer

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

  8. infracost

    Cloud cost intelligence for engineers, AI coding agents, and CI/CD 💰📉 Shift FinOps Left!

  9. terraform-aws-eks

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

  10. checkov

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

  11. terragrunt

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

  12. terratest

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

  13. terraform-docs

    Generate documentation from Terraform modules in various output formats

  14. tfsec

    Tfsec is now part of Trivy

  15. tflint

    A Pluggable Terraform Linter

  16. pre-commit-hooks

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

  17. changie

    Automated changelog tool for preparing releases with lots of customization options

  18. terraform-aws-vpc

    Terraform module to create AWS VPC resources 🇺🇦

  19. plantuml-githook

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

  20. terratag

    Terratag is a CLI tool that enables users of Terraform to automatically create and maintain tags across their entire set of AWS, Azure, and GCP resources

  21. terraform-module-template

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

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 2026-07-17.
  • Building a Monorepository of Terraform Modules on GitLab
    4 projects | dev.to | 17 Jul 2026
    # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: - id: end-of-file-fixer - id: check-merge-conflict - id: trailing-whitespace args: [--markdown-linebreak-ext=md] - id: check-shebang-scripts-are-executable # YAML - id: check-yaml # Cross platform - id: check-case-conflict # checks for files that would conflict in case-insensitive filesystems. - id: mixed-line-ending # replaces or checks mixed line ending. args: [--fix=lf] - repo: https://github.com/antonbabenko/pre-commit-terraform # Ensure the PRE_COMMIT_TERRAFORM_VERSION value is the same in .gitlab-ci.yml rev: v1.105.0 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases hooks: - id: terraform_fmt - id: terraform_docs args: ["--args=--lockfile=false"] - id: terraform_tflint - id: terraform_checkov args: - --args=--framework=terraform - --args=--soft-fail - --args=--config-file=__GIT_WORKING_DIR__/.checkov.yaml - --args=--skip-path=__GIT_WORKING_DIR__/.cache/pre-commit - repo: https://github.com/bridgecrewio/checkov.git rev: 3.2.524 hooks: - id: checkov_secrets args: [--directory, ., --framework, secrets, --config-file, .checkov.yaml, --skip-path, .cache/pre-commit] pass_filenames: false - repo: https://github.com/hashicorp/copywrite rev: v0.25.3 hooks: - id: add-headers
  • 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.
  • A note from our sponsor - SaaSHub
    www.saashub.com | 16 Aug 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic pre-commit-terraform repo stats
18
3,756
8.0
about 21 hours ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com