diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 10bde48..8f8a374 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/antonbabenko/pre-commit-terraform - rev: v1.81.0 + rev: v1.83.4 hooks: - id: terraform_fmt args: @@ -9,6 +9,9 @@ repos: args: - --tf-init-args=-upgrade - --hook-config=--retry-once-with-cleanup=true + - id: terraform_providers_lock + args: + - --hook-config=--mode=always-regenerate-lockfile - id: terraform_tflint args: - --args=--config=__GIT_WORKING_DIR__/.tflint.hcl diff --git a/examples/elasticache-redis-full/versions.tf b/examples/elasticache-redis-full/versions.tf index 3c3b4cf..59c42e8 100644 --- a/examples/elasticache-redis-full/versions.tf +++ b/examples/elasticache-redis-full/versions.tf @@ -1,10 +1,10 @@ terraform { - required_version = "~> 1.3" + required_version = "~> 1.5" required_providers { aws = { source = "hashicorp/aws" - version = "~> 4.0" + version = "~> 5.0" } } } diff --git a/examples/elasticache-redis-muti-az/versions.tf b/examples/elasticache-redis-muti-az/versions.tf index 3c3b4cf..59c42e8 100644 --- a/examples/elasticache-redis-muti-az/versions.tf +++ b/examples/elasticache-redis-muti-az/versions.tf @@ -1,10 +1,10 @@ terraform { - required_version = "~> 1.3" + required_version = "~> 1.5" required_providers { aws = { source = "hashicorp/aws" - version = "~> 4.0" + version = "~> 5.0" } } } diff --git a/examples/elasticache-redis-single/versions.tf b/examples/elasticache-redis-single/versions.tf index 3c3b4cf..59c42e8 100644 --- a/examples/elasticache-redis-single/versions.tf +++ b/examples/elasticache-redis-single/versions.tf @@ -1,10 +1,10 @@ terraform { - required_version = "~> 1.3" + required_version = "~> 1.5" required_providers { aws = { source = "hashicorp/aws" - version = "~> 4.0" + version = "~> 5.0" } } } diff --git a/examples/elasticache-redis-with-users/versions.tf b/examples/elasticache-redis-with-users/versions.tf index 3c3b4cf..59c42e8 100644 --- a/examples/elasticache-redis-with-users/versions.tf +++ b/examples/elasticache-redis-with-users/versions.tf @@ -1,10 +1,10 @@ terraform { - required_version = "~> 1.3" + required_version = "~> 1.5" required_providers { aws = { source = "hashicorp/aws" - version = "~> 4.0" + version = "~> 5.0" } } }