up structure for tf
This commit is contained in:
parent
a3c818ef83
commit
e31fdc2c02
874 changed files with 3019 additions and 67372 deletions
24
.pre-commit-config.yaml
Normal file
24
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue