diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..ce23276 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,12 @@ +repos: +- repo: https://github.com/antonbabenko/pre-commit-terraform + rev: v1.76.0 + hooks: + - id: terraform_fmt + - id: terraform_docs + - id: terraform_checkov + - id: terraform_tflint + - id: terraform_tfsec + - id: terrascan + - id: tfupdate + # - id: terraform_validate diff --git a/terraform/modules/apigw/versions.tf b/terraform/modules/apigw/versions.tf index bceb8d0..3861683 100644 --- a/terraform/modules/apigw/versions.tf +++ b/terraform/modules/apigw/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.0.6" + required_version = "1.3.4" required_providers { aws = { diff --git a/terraform/modules/cloudfront/versions.tf b/terraform/modules/cloudfront/versions.tf index bceb8d0..3861683 100644 --- a/terraform/modules/cloudfront/versions.tf +++ b/terraform/modules/cloudfront/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.0.6" + required_version = "1.3.4" required_providers { aws = { diff --git a/terraform/modules/dynamodb/versions.tf b/terraform/modules/dynamodb/versions.tf index bceb8d0..3861683 100644 --- a/terraform/modules/dynamodb/versions.tf +++ b/terraform/modules/dynamodb/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.0.6" + required_version = "1.3.4" required_providers { aws = { diff --git a/terraform/modules/lambda/versions.tf b/terraform/modules/lambda/versions.tf index bceb8d0..3861683 100644 --- a/terraform/modules/lambda/versions.tf +++ b/terraform/modules/lambda/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.0.6" + required_version = "1.3.4" required_providers { aws = { diff --git a/terraform/modules/s3/versions.tf b/terraform/modules/s3/versions.tf index bceb8d0..3861683 100644 --- a/terraform/modules/s3/versions.tf +++ b/terraform/modules/s3/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.0.6" + required_version = "1.3.4" required_providers { aws = { diff --git a/terraform/modules/sqs/versions.tf b/terraform/modules/sqs/versions.tf index bceb8d0..3861683 100644 --- a/terraform/modules/sqs/versions.tf +++ b/terraform/modules/sqs/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.0.6" + required_version = "1.3.4" required_providers { aws = { diff --git a/terraform/modules/waf/versions.tf b/terraform/modules/waf/versions.tf index bceb8d0..3861683 100644 --- a/terraform/modules/waf/versions.tf +++ b/terraform/modules/waf/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.0.6" + required_version = "1.3.4" required_providers { aws = { diff --git a/terraform/organization/versions.tf b/terraform/organization/versions.tf index bceb8d0..3861683 100644 --- a/terraform/organization/versions.tf +++ b/terraform/organization/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.0.6" + required_version = "1.3.4" required_providers { aws = {