repos: - repo: https://github.com/antonbabenko/pre-commit-terraform rev: v1.100.0 # v1.92.2 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases hooks: - id: terraform_fmt args: - --hook-config=--parallelism-ci-cpu-cores=1 - id: terraform_validate args: - --tf-init-args=-backend=false # disable backend for pre-commit # - --tf-init-args=-upgrade # requires export NO_PROXY=git.cloud.safran,api0.prismacloud.io to avoid connection issues - --hook-config=--retry-once-with-cleanup=true # requires jq # - id: terraform_checkov # args: # - --args=--download-external-modules=true # download external modules # - --args=--quiet # only show failed checks (not all checks) # # - --args=--skip-check=CKV_AWS_21,CKV_AWS_57 # skip specific checks # - id: infracost_breakdown # args: # - --args=--path=. # - --args=--terraform-var-file="envs/ppd.tfvars" # - --args=--terraform-var-file="envs/shared.tfvars" # verbose: true