From 3cf81b10b204e16a53af5f9e3ed988832f53d2b6 Mon Sep 17 00:00:00 2001 From: Byungjin Park Date: Tue, 3 Oct 2023 18:19:35 +0900 Subject: [PATCH] Update terraform version to v1.5 --- .pre-commit-config.yaml | 5 ++++- examples/dns-firewall-full/versions.tf | 2 +- examples/fms-dns-firewall-policy/versions.tf | 2 +- modules/dns-firewall-domain-list/README.md | 4 ++-- modules/dns-firewall-domain-list/versions.tf | 2 +- modules/dns-firewall-rule-group/README.md | 4 ++-- modules/dns-firewall-rule-group/versions.tf | 2 +- modules/dns-firewall/README.md | 4 ++-- modules/dns-firewall/versions.tf | 2 +- modules/fms-dns-firewall-policy/README.md | 4 ++-- modules/fms-dns-firewall-policy/versions.tf | 2 +- modules/waf-ip-set/README.md | 4 ++-- modules/waf-ip-set/versions.tf | 2 +- 13 files changed, 21 insertions(+), 18 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/dns-firewall-full/versions.tf b/examples/dns-firewall-full/versions.tf index 3c3b4cf..fe30da3 100644 --- a/examples/dns-firewall-full/versions.tf +++ b/examples/dns-firewall-full/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = "~> 1.3" + required_version = "~> 1.5" required_providers { aws = { diff --git a/examples/fms-dns-firewall-policy/versions.tf b/examples/fms-dns-firewall-policy/versions.tf index 3c3b4cf..fe30da3 100644 --- a/examples/fms-dns-firewall-policy/versions.tf +++ b/examples/fms-dns-firewall-policy/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = "~> 1.3" + required_version = "~> 1.5" required_providers { aws = { diff --git a/modules/dns-firewall-domain-list/README.md b/modules/dns-firewall-domain-list/README.md index 5e75c27..524a972 100644 --- a/modules/dns-firewall-domain-list/README.md +++ b/modules/dns-firewall-domain-list/README.md @@ -9,14 +9,14 @@ This module creates following resources. | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 1.3 | +| [terraform](#requirement\_terraform) | >= 1.5 | | [aws](#requirement\_aws) | >= 4.14 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 4.33.0 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules diff --git a/modules/dns-firewall-domain-list/versions.tf b/modules/dns-firewall-domain-list/versions.tf index 353870d..283cac8 100644 --- a/modules/dns-firewall-domain-list/versions.tf +++ b/modules/dns-firewall-domain-list/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = { diff --git a/modules/dns-firewall-rule-group/README.md b/modules/dns-firewall-rule-group/README.md index 54ec86e..182f5a6 100644 --- a/modules/dns-firewall-rule-group/README.md +++ b/modules/dns-firewall-rule-group/README.md @@ -10,14 +10,14 @@ This module creates following resources. | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 1.3 | +| [terraform](#requirement\_terraform) | >= 1.5 | | [aws](#requirement\_aws) | >= 4.14 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 4.46.0 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules diff --git a/modules/dns-firewall-rule-group/versions.tf b/modules/dns-firewall-rule-group/versions.tf index 353870d..283cac8 100644 --- a/modules/dns-firewall-rule-group/versions.tf +++ b/modules/dns-firewall-rule-group/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = { diff --git a/modules/dns-firewall/README.md b/modules/dns-firewall/README.md index 4257914..c3f3b34 100644 --- a/modules/dns-firewall/README.md +++ b/modules/dns-firewall/README.md @@ -10,14 +10,14 @@ This module creates following resources. | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 1.3 | +| [terraform](#requirement\_terraform) | >= 1.5 | | [aws](#requirement\_aws) | >= 4.14 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 4.33.0 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules diff --git a/modules/dns-firewall/versions.tf b/modules/dns-firewall/versions.tf index 353870d..283cac8 100644 --- a/modules/dns-firewall/versions.tf +++ b/modules/dns-firewall/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = { diff --git a/modules/fms-dns-firewall-policy/README.md b/modules/fms-dns-firewall-policy/README.md index 8a716dd..f4a47b7 100644 --- a/modules/fms-dns-firewall-policy/README.md +++ b/modules/fms-dns-firewall-policy/README.md @@ -9,14 +9,14 @@ This module creates following resources. | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 1.3 | +| [terraform](#requirement\_terraform) | >= 1.5 | | [aws](#requirement\_aws) | >= 4.36 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 4.33.0 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules diff --git a/modules/fms-dns-firewall-policy/versions.tf b/modules/fms-dns-firewall-policy/versions.tf index 0c5a0cf..7a4dc6b 100644 --- a/modules/fms-dns-firewall-policy/versions.tf +++ b/modules/fms-dns-firewall-policy/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = { diff --git a/modules/waf-ip-set/README.md b/modules/waf-ip-set/README.md index ff00740..ec32e47 100644 --- a/modules/waf-ip-set/README.md +++ b/modules/waf-ip-set/README.md @@ -9,14 +9,14 @@ This module creates following resources. | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 1.3 | +| [terraform](#requirement\_terraform) | >= 1.5 | | [aws](#requirement\_aws) | >= 4.61 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 4.33.0 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules diff --git a/modules/waf-ip-set/versions.tf b/modules/waf-ip-set/versions.tf index fadc915..4070098 100644 --- a/modules/waf-ip-set/versions.tf +++ b/modules/waf-ip-set/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = {