From c99550a27d7d25581076543082d1c61d1a09d2b4 Mon Sep 17 00:00:00 2001 From: Byungjin Park Date: Tue, 3 Oct 2023 03:17:28 +0900 Subject: [PATCH] Update terraform version to v1.5 --- .pre-commit-config.yaml | 5 ++++- examples/elasticache-redis-full/versions.tf | 4 ++-- examples/elasticache-redis-muti-az/versions.tf | 4 ++-- examples/elasticache-redis-single/versions.tf | 4 ++-- examples/elasticache-redis-with-users/versions.tf | 4 ++-- 5 files changed, 12 insertions(+), 9 deletions(-) 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" } } }