From c951ca8def40051d704adac278294dc950e601ec Mon Sep 17 00:00:00 2001 From: "Byungjin Park (Claud)" Date: Tue, 3 Oct 2023 19:05:43 +0900 Subject: [PATCH] Update terraform version to v1.5 (#96) --- .pre-commit-config.yaml | 5 ++++- modules/account/README.md | 4 ++-- modules/account/versions.tf | 2 +- modules/iam-group/README.md | 4 ++-- modules/iam-group/versions.tf | 2 +- modules/iam-oidc-identity-provider/README.md | 4 ++-- modules/iam-oidc-identity-provider/versions.tf | 2 +- modules/iam-policy/README.md | 4 ++-- modules/iam-policy/versions.tf | 2 +- modules/iam-predefined-policies/README.md | 4 ++-- modules/iam-predefined-policies/versions.tf | 2 +- modules/iam-role/README.md | 4 ++-- modules/iam-role/versions.tf | 2 +- modules/iam-saml-identity-provider/README.md | 4 ++-- modules/iam-saml-identity-provider/versions.tf | 2 +- modules/iam-service-linked-role/README.md | 4 ++-- modules/iam-service-linked-role/versions.tf | 2 +- modules/iam-user/README.md | 4 ++-- modules/iam-user/versions.tf | 2 +- modules/org-account/README.md | 8 ++++---- modules/org-account/versions.tf | 2 +- modules/org-organizational-unit/README.md | 4 ++-- modules/org-organizational-unit/versions.tf | 2 +- modules/ram-share/README.md | 4 ++-- modules/ram-share/versions.tf | 2 +- modules/region/README.md | 4 ++-- modules/region/versions.tf | 2 +- modules/sso-access-control-attributes/README.md | 4 ++-- modules/sso-access-control-attributes/versions.tf | 2 +- modules/sso-account-assignment/README.md | 4 ++-- modules/sso-account-assignment/versions.tf | 2 +- modules/sso-permission-set/README.md | 4 ++-- modules/sso-permission-set/versions.tf | 2 +- 33 files changed, 54 insertions(+), 51 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/modules/account/README.md b/modules/account/README.md index b5adc36..f598cf9 100644 --- a/modules/account/README.md +++ b/modules/account/README.md @@ -15,14 +15,14 @@ This module creates following resources. | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 1.3 | +| [terraform](#requirement\_terraform) | >= 1.5 | | [aws](#requirement\_aws) | >= 5.10 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.14.0 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules diff --git a/modules/account/versions.tf b/modules/account/versions.tf index a5f543a..3c9eecf 100644 --- a/modules/account/versions.tf +++ b/modules/account/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = { diff --git a/modules/iam-group/README.md b/modules/iam-group/README.md index be86161..b911cdb 100644 --- a/modules/iam-group/README.md +++ b/modules/iam-group/README.md @@ -11,14 +11,14 @@ This module creates following resources. | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 1.3 | +| [terraform](#requirement\_terraform) | >= 1.5 | | [aws](#requirement\_aws) | >= 3.45 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 4.40.0 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules diff --git a/modules/iam-group/versions.tf b/modules/iam-group/versions.tf index 3b64777..9ae3d78 100644 --- a/modules/iam-group/versions.tf +++ b/modules/iam-group/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = { diff --git a/modules/iam-oidc-identity-provider/README.md b/modules/iam-oidc-identity-provider/README.md index 886ecf9..c1767e6 100644 --- a/modules/iam-oidc-identity-provider/README.md +++ b/modules/iam-oidc-identity-provider/README.md @@ -10,7 +10,7 @@ This module creates following resources. | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 1.3 | +| [terraform](#requirement\_terraform) | >= 1.5 | | [aws](#requirement\_aws) | >= 4.36 | | [tls](#requirement\_tls) | >= 4.0 | @@ -18,7 +18,7 @@ This module creates following resources. | Name | Version | |------|---------| -| [aws](#provider\_aws) | 4.40.0 | +| [aws](#provider\_aws) | 5.19.0 | | [tls](#provider\_tls) | 4.0.4 | ## Modules diff --git a/modules/iam-oidc-identity-provider/versions.tf b/modules/iam-oidc-identity-provider/versions.tf index 9f5c572..7cf4a63 100644 --- a/modules/iam-oidc-identity-provider/versions.tf +++ b/modules/iam-oidc-identity-provider/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = { diff --git a/modules/iam-policy/README.md b/modules/iam-policy/README.md index 97a6653..967cf9a 100644 --- a/modules/iam-policy/README.md +++ b/modules/iam-policy/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.36 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.5.0 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules diff --git a/modules/iam-policy/versions.tf b/modules/iam-policy/versions.tf index 0c5a0cf..7a4dc6b 100644 --- a/modules/iam-policy/versions.tf +++ b/modules/iam-policy/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = { diff --git a/modules/iam-predefined-policies/README.md b/modules/iam-predefined-policies/README.md index 0f03d5a..d3be537 100644 --- a/modules/iam-predefined-policies/README.md +++ b/modules/iam-predefined-policies/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) | 5.5.0 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules diff --git a/modules/iam-predefined-policies/versions.tf b/modules/iam-predefined-policies/versions.tf index 0c5a0cf..7a4dc6b 100644 --- a/modules/iam-predefined-policies/versions.tf +++ b/modules/iam-predefined-policies/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = { diff --git a/modules/iam-role/README.md b/modules/iam-role/README.md index ed475ea..6949627 100644 --- a/modules/iam-role/README.md +++ b/modules/iam-role/README.md @@ -20,14 +20,14 @@ When `pgp_key` is specified as `keybase:username`, make sure that that user has | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 1.3 | +| [terraform](#requirement\_terraform) | >= 1.5 | | [aws](#requirement\_aws) | >= 3.45 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 4.40.0 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules diff --git a/modules/iam-role/versions.tf b/modules/iam-role/versions.tf index 3b64777..9ae3d78 100644 --- a/modules/iam-role/versions.tf +++ b/modules/iam-role/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = { diff --git a/modules/iam-saml-identity-provider/README.md b/modules/iam-saml-identity-provider/README.md index 9fc207b..c4c441d 100644 --- a/modules/iam-saml-identity-provider/README.md +++ b/modules/iam-saml-identity-provider/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.36 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 4.40.0 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules diff --git a/modules/iam-saml-identity-provider/versions.tf b/modules/iam-saml-identity-provider/versions.tf index 0c5a0cf..7a4dc6b 100644 --- a/modules/iam-saml-identity-provider/versions.tf +++ b/modules/iam-saml-identity-provider/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = { diff --git a/modules/iam-service-linked-role/README.md b/modules/iam-service-linked-role/README.md index 59bde9c..d3ba8cb 100644 --- a/modules/iam-service-linked-role/README.md +++ b/modules/iam-service-linked-role/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) | >= 3.70 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 4.40.0 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules diff --git a/modules/iam-service-linked-role/versions.tf b/modules/iam-service-linked-role/versions.tf index 4741131..2b6e87e 100644 --- a/modules/iam-service-linked-role/versions.tf +++ b/modules/iam-service-linked-role/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = { diff --git a/modules/iam-user/README.md b/modules/iam-user/README.md index 78517d5..b71c087 100644 --- a/modules/iam-user/README.md +++ b/modules/iam-user/README.md @@ -24,14 +24,14 @@ When `pgp_key` is specified as `keybase:username`, make sure that that user has | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 1.3 | +| [terraform](#requirement\_terraform) | >= 1.5 | | [aws](#requirement\_aws) | >= 4.1 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 4.40.0 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules diff --git a/modules/iam-user/versions.tf b/modules/iam-user/versions.tf index a978b7f..0d1521a 100644 --- a/modules/iam-user/versions.tf +++ b/modules/iam-user/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = { diff --git a/modules/org-account/README.md b/modules/org-account/README.md index 2092840..420b44e 100644 --- a/modules/org-account/README.md +++ b/modules/org-account/README.md @@ -16,14 +16,14 @@ This module creates following resources. | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 1.3 | +| [terraform](#requirement\_terraform) | >= 1.5 | | [aws](#requirement\_aws) | >= 3.65 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 4.40.0 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules @@ -56,7 +56,7 @@ This module creates following resources. | [module\_tags\_enabled](#input\_module\_tags\_enabled) | Whether to create AWS Resource Tags for the module informations. | `bool` | `true` | no | | [parent\_id](#input\_parent\_id) | Parent Organizational Unit ID or Root ID for the account. Defaults to the Organization default Root ID. A configuration must be present for this argument to perform drift detection. | `string` | `null` | no | | [policies](#input\_policies) | List of IDs of the policies to be attached to the Account. | `list(string)` | `[]` | no | -| [preconfigured\_adminitrator\_role\_name](#input\_preconfigured\_adminitrator\_role\_name) | The name of an IAM role that Organizations automatically preconfigures in the new member account. This role trusts the master account, allowing users in the master account to assume the role, as permitted by the master account administrator. The role has administrator permissions in the new member account. | `string` | `null` | no | +| [preconfigured\_administrator\_role\_name](#input\_preconfigured\_administrator\_role\_name) | The name of an IAM role that Organizations automatically preconfigures in the new member account. This role trusts the master account, allowing users in the master account to assume the role, as permitted by the master account administrator. The role has administrator permissions in the new member account. | `string` | `null` | no | | [resource\_group\_description](#input\_resource\_group\_description) | The description of Resource Group. | `string` | `"Managed by Terraform."` | no | | [resource\_group\_enabled](#input\_resource\_group\_enabled) | Whether to create Resource Group to find and group AWS resources which are created by this module. | `bool` | `true` | no | | [resource\_group\_name](#input\_resource\_group\_name) | The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with `AWS` or `aws`. | `string` | `""` | no | @@ -75,5 +75,5 @@ This module creates following resources. | [id](#output\_id) | The ID of this account. | | [name](#output\_name) | The name of this account. | | [parent\_id](#output\_parent\_id) | The ID of the parent Organizational Unit. | -| [preconfigured\_adminitrator\_role\_name](#output\_preconfigured\_adminitrator\_role\_name) | The name of an IAM role that allow users in the master account to assume as administrator. | +| [preconfigured\_administrator\_role\_name](#output\_preconfigured\_administrator\_role\_name) | The name of an IAM role that allow users in the master account to assume as administrator. | diff --git a/modules/org-account/versions.tf b/modules/org-account/versions.tf index eab8cc0..637a0b2 100644 --- a/modules/org-account/versions.tf +++ b/modules/org-account/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = { diff --git a/modules/org-organizational-unit/README.md b/modules/org-organizational-unit/README.md index e615458..864aa41 100644 --- a/modules/org-organizational-unit/README.md +++ b/modules/org-organizational-unit/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) | >= 3.65 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 4.40.0 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules diff --git a/modules/org-organizational-unit/versions.tf b/modules/org-organizational-unit/versions.tf index eab8cc0..637a0b2 100644 --- a/modules/org-organizational-unit/versions.tf +++ b/modules/org-organizational-unit/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = { diff --git a/modules/ram-share/README.md b/modules/ram-share/README.md index cfe7e3f..ed17aab 100644 --- a/modules/ram-share/README.md +++ b/modules/ram-share/README.md @@ -11,14 +11,14 @@ This module creates following resources. | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 1.3 | +| [terraform](#requirement\_terraform) | >= 1.5 | | [aws](#requirement\_aws) | >= 4.29 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 4.39.0 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules diff --git a/modules/ram-share/versions.tf b/modules/ram-share/versions.tf index 76fedff..acc0dcc 100644 --- a/modules/ram-share/versions.tf +++ b/modules/ram-share/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = { diff --git a/modules/region/README.md b/modules/region/README.md index b809e3b..c551d9e 100644 --- a/modules/region/README.md +++ b/modules/region/README.md @@ -14,14 +14,14 @@ This module creates following resources. | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 1.3 | +| [terraform](#requirement\_terraform) | >= 1.5 | | [aws](#requirement\_aws) | >= 4.22 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.14.0 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules diff --git a/modules/region/versions.tf b/modules/region/versions.tf index 07fd249..16131a3 100644 --- a/modules/region/versions.tf +++ b/modules/region/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = { diff --git a/modules/sso-access-control-attributes/README.md b/modules/sso-access-control-attributes/README.md index 1dc8f34..21eca4a 100644 --- a/modules/sso-access-control-attributes/README.md +++ b/modules/sso-access-control-attributes/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.49 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 4.57.1 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules diff --git a/modules/sso-access-control-attributes/versions.tf b/modules/sso-access-control-attributes/versions.tf index 75de002..1649a61 100644 --- a/modules/sso-access-control-attributes/versions.tf +++ b/modules/sso-access-control-attributes/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = { diff --git a/modules/sso-account-assignment/README.md b/modules/sso-account-assignment/README.md index 1fa4af8..eeb708c 100644 --- a/modules/sso-account-assignment/README.md +++ b/modules/sso-account-assignment/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.64 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.1.0 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules diff --git a/modules/sso-account-assignment/versions.tf b/modules/sso-account-assignment/versions.tf index e1358c6..f3017e1 100644 --- a/modules/sso-account-assignment/versions.tf +++ b/modules/sso-account-assignment/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = { diff --git a/modules/sso-permission-set/README.md b/modules/sso-permission-set/README.md index d105b2d..a161e72 100644 --- a/modules/sso-permission-set/README.md +++ b/modules/sso-permission-set/README.md @@ -13,14 +13,14 @@ This module creates following resources. | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 1.3 | +| [terraform](#requirement\_terraform) | >= 1.5 | | [aws](#requirement\_aws) | >= 4.64 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.1.0 | +| [aws](#provider\_aws) | 5.19.0 | ## Modules diff --git a/modules/sso-permission-set/versions.tf b/modules/sso-permission-set/versions.tf index e1358c6..f3017e1 100644 --- a/modules/sso-permission-set/versions.tf +++ b/modules/sso-permission-set/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3" + required_version = ">= 1.5" required_providers { aws = {