From 3c304136cf332eebf40c0eb0ee0ba819a72dea41 Mon Sep 17 00:00:00 2001 From: nozaq Date: Sat, 19 Feb 2022 13:06:13 +0900 Subject: [PATCH] fix: require AWS provider v4.2.0 (#270) Updated the provider requiremenet to avoid the issue in AWS provider v4.1.0 that the validation fails for some AWS regions. --- README.md | 4 ++-- examples/external-bucket/main.tf | 2 +- examples/organization/master/main.tf | 2 +- examples/organization/member/main.tf | 2 +- examples/select-region/main.tf | 2 +- examples/simple/main.tf | 2 +- main.tf | 2 +- modules/alarm-baseline/README.md | 4 ++-- modules/alarm-baseline/versions.tf | 2 +- modules/analyzer-baseline/README.md | 4 ++-- modules/analyzer-baseline/versions.tf | 2 +- modules/cloudtrail-baseline/README.md | 4 ++-- modules/cloudtrail-baseline/versions.tf | 2 +- modules/config-baseline/README.md | 4 ++-- modules/config-baseline/versions.tf | 2 +- modules/ebs-baseline/README.md | 4 ++-- modules/ebs-baseline/versions.tf | 2 +- modules/guardduty-baseline/README.md | 4 ++-- modules/guardduty-baseline/versions.tf | 2 +- modules/iam-baseline/README.md | 4 ++-- modules/iam-baseline/versions.tf | 2 +- modules/s3-baseline/README.md | 4 ++-- modules/s3-baseline/versions.tf | 2 +- modules/secure-bucket/README.md | 4 ++-- modules/secure-bucket/versions.tf | 2 +- modules/securityhub-baseline/README.md | 4 ++-- modules/securityhub-baseline/versions.tf | 2 +- modules/vpc-baseline/README.md | 4 ++-- modules/vpc-baseline/versions.tf | 2 +- test/fixtures/simple_local/main.tf | 2 +- test/fixtures/simple_registry/main.tf | 2 +- 31 files changed, 43 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index 7a5106f4..ab19ed8c 100644 --- a/README.md +++ b/README.md @@ -111,13 +111,13 @@ This module is composed of several submodules and each of which can be used inde | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.1.4 | -| [aws](#requirement\_aws) | >= 4.1.0 | +| [aws](#requirement\_aws) | >= 4.2.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 4.1.0 | +| [aws](#provider\_aws) | >= 4.2.0 | ## Inputs diff --git a/examples/external-bucket/main.tf b/examples/external-bucket/main.tf index 9929877b..824f4532 100644 --- a/examples/external-bucket/main.tf +++ b/examples/external-bucket/main.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.1.0" + version = ">= 4.2.0" } } } diff --git a/examples/organization/master/main.tf b/examples/organization/master/main.tf index 7154c50c..f54918d9 100644 --- a/examples/organization/master/main.tf +++ b/examples/organization/master/main.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.1.0" + version = ">= 4.2.0" } } } diff --git a/examples/organization/member/main.tf b/examples/organization/member/main.tf index ccecef4d..e5758323 100644 --- a/examples/organization/member/main.tf +++ b/examples/organization/member/main.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.1.0" + version = ">= 4.2.0" } } } diff --git a/examples/select-region/main.tf b/examples/select-region/main.tf index d2fd98e2..3a954140 100644 --- a/examples/select-region/main.tf +++ b/examples/select-region/main.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.1.0" + version = ">= 4.2.0" } } } diff --git a/examples/simple/main.tf b/examples/simple/main.tf index 2b9edef9..fed9ce88 100644 --- a/examples/simple/main.tf +++ b/examples/simple/main.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.1.0" + version = ">= 4.2.0" } } } diff --git a/main.tf b/main.tf index 9ae4ef53..68049797 100644 --- a/main.tf +++ b/main.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.1.0" + version = ">= 4.2.0" # A provider alias should be passed for each AWS region. # Reference: https://docs.aws.amazon.com/general/latest/gr/rande.html diff --git a/modules/alarm-baseline/README.md b/modules/alarm-baseline/README.md index f10d5321..b3cdb570 100644 --- a/modules/alarm-baseline/README.md +++ b/modules/alarm-baseline/README.md @@ -8,13 +8,13 @@ Set up CloudWatch alarms to notify you when critical changes happen in your AWS | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.1.4 | -| [aws](#requirement\_aws) | >= 4.1.0 | +| [aws](#requirement\_aws) | >= 4.2.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 4.1.0 | +| [aws](#provider\_aws) | >= 4.2.0 | ## Inputs diff --git a/modules/alarm-baseline/versions.tf b/modules/alarm-baseline/versions.tf index 90efe1ac..c63c8264 100644 --- a/modules/alarm-baseline/versions.tf +++ b/modules/alarm-baseline/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.1.0" + version = ">= 4.2.0" } } } diff --git a/modules/analyzer-baseline/README.md b/modules/analyzer-baseline/README.md index 07188aa4..6f0e0b71 100644 --- a/modules/analyzer-baseline/README.md +++ b/modules/analyzer-baseline/README.md @@ -10,13 +10,13 @@ | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.1.4 | -| [aws](#requirement\_aws) | >= 4.1.0 | +| [aws](#requirement\_aws) | >= 4.2.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 4.1.0 | +| [aws](#provider\_aws) | >= 4.2.0 | ## Inputs diff --git a/modules/analyzer-baseline/versions.tf b/modules/analyzer-baseline/versions.tf index 90efe1ac..c63c8264 100644 --- a/modules/analyzer-baseline/versions.tf +++ b/modules/analyzer-baseline/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.1.0" + version = ">= 4.2.0" } } } diff --git a/modules/cloudtrail-baseline/README.md b/modules/cloudtrail-baseline/README.md index 54122345..a2c0e5bb 100644 --- a/modules/cloudtrail-baseline/README.md +++ b/modules/cloudtrail-baseline/README.md @@ -8,13 +8,13 @@ Enable CloudTrail in all regions and deliver events to CloudWatch Logs. CloudTra | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.1.4 | -| [aws](#requirement\_aws) | >= 4.1.0 | +| [aws](#requirement\_aws) | >= 4.2.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 4.1.0 | +| [aws](#provider\_aws) | >= 4.2.0 | ## Inputs diff --git a/modules/cloudtrail-baseline/versions.tf b/modules/cloudtrail-baseline/versions.tf index 90efe1ac..c63c8264 100644 --- a/modules/cloudtrail-baseline/versions.tf +++ b/modules/cloudtrail-baseline/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.1.0" + version = ">= 4.2.0" } } } diff --git a/modules/config-baseline/README.md b/modules/config-baseline/README.md index ce072b47..d29ad5bb 100644 --- a/modules/config-baseline/README.md +++ b/modules/config-baseline/README.md @@ -8,13 +8,13 @@ Enable AWS Config in all regions to automatically take configuration snapshots. | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.1.4 | -| [aws](#requirement\_aws) | >= 4.1.0 | +| [aws](#requirement\_aws) | >= 4.2.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 4.1.0 | +| [aws](#provider\_aws) | >= 4.2.0 | ## Inputs diff --git a/modules/config-baseline/versions.tf b/modules/config-baseline/versions.tf index 90efe1ac..c63c8264 100644 --- a/modules/config-baseline/versions.tf +++ b/modules/config-baseline/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.1.0" + version = ">= 4.2.0" } } } diff --git a/modules/ebs-baseline/README.md b/modules/ebs-baseline/README.md index c8c77bf9..2b2e621e 100644 --- a/modules/ebs-baseline/README.md +++ b/modules/ebs-baseline/README.md @@ -10,13 +10,13 @@ | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.1.4 | -| [aws](#requirement\_aws) | >= 4.1.0 | +| [aws](#requirement\_aws) | >= 4.2.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 4.1.0 | +| [aws](#provider\_aws) | >= 4.2.0 | ## Inputs diff --git a/modules/ebs-baseline/versions.tf b/modules/ebs-baseline/versions.tf index 90efe1ac..c63c8264 100644 --- a/modules/ebs-baseline/versions.tf +++ b/modules/ebs-baseline/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.1.0" + version = ">= 4.2.0" } } } diff --git a/modules/guardduty-baseline/README.md b/modules/guardduty-baseline/README.md index 33914905..d47d7f1a 100644 --- a/modules/guardduty-baseline/README.md +++ b/modules/guardduty-baseline/README.md @@ -8,13 +8,13 @@ Enable GuardDuty in all regions. | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.1.4 | -| [aws](#requirement\_aws) | >= 4.1.0 | +| [aws](#requirement\_aws) | >= 4.2.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 4.1.0 | +| [aws](#provider\_aws) | >= 4.2.0 | ## Inputs diff --git a/modules/guardduty-baseline/versions.tf b/modules/guardduty-baseline/versions.tf index 90efe1ac..c63c8264 100644 --- a/modules/guardduty-baseline/versions.tf +++ b/modules/guardduty-baseline/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.1.0" + version = ">= 4.2.0" } } } diff --git a/modules/iam-baseline/README.md b/modules/iam-baseline/README.md index 7f40dffa..518cf5ed 100644 --- a/modules/iam-baseline/README.md +++ b/modules/iam-baseline/README.md @@ -11,13 +11,13 @@ | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.13 | -| [aws](#requirement\_aws) | >= 4.1.0 | +| [aws](#requirement\_aws) | >= 4.2.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 4.1.0 | +| [aws](#provider\_aws) | >= 4.2.0 | ## Inputs diff --git a/modules/iam-baseline/versions.tf b/modules/iam-baseline/versions.tf index 2ce32aed..99a69b4e 100644 --- a/modules/iam-baseline/versions.tf +++ b/modules/iam-baseline/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.1.0" + version = ">= 4.2.0" } } } diff --git a/modules/s3-baseline/README.md b/modules/s3-baseline/README.md index 8ecafd71..af14e6ce 100644 --- a/modules/s3-baseline/README.md +++ b/modules/s3-baseline/README.md @@ -10,13 +10,13 @@ | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.13 | -| [aws](#requirement\_aws) | >= 4.1.0 | +| [aws](#requirement\_aws) | >= 4.2.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 4.1.0 | +| [aws](#provider\_aws) | >= 4.2.0 | ## Inputs diff --git a/modules/s3-baseline/versions.tf b/modules/s3-baseline/versions.tf index 2ce32aed..99a69b4e 100644 --- a/modules/s3-baseline/versions.tf +++ b/modules/s3-baseline/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.1.0" + version = ">= 4.2.0" } } } diff --git a/modules/secure-bucket/README.md b/modules/secure-bucket/README.md index 8da7c8e4..dbb6673b 100644 --- a/modules/secure-bucket/README.md +++ b/modules/secure-bucket/README.md @@ -8,13 +8,13 @@ Creates a S3 bucket with access logging enabled. | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.13 | -| [aws](#requirement\_aws) | >= 4.1.0 | +| [aws](#requirement\_aws) | >= 4.2.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 4.1.0 | +| [aws](#provider\_aws) | >= 4.2.0 | ## Inputs diff --git a/modules/secure-bucket/versions.tf b/modules/secure-bucket/versions.tf index 2ce32aed..99a69b4e 100644 --- a/modules/secure-bucket/versions.tf +++ b/modules/secure-bucket/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.1.0" + version = ">= 4.2.0" } } } diff --git a/modules/securityhub-baseline/README.md b/modules/securityhub-baseline/README.md index 39aa3ee9..f80d7905 100644 --- a/modules/securityhub-baseline/README.md +++ b/modules/securityhub-baseline/README.md @@ -13,13 +13,13 @@ | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.1.4 | -| [aws](#requirement\_aws) | >= 4.1.0 | +| [aws](#requirement\_aws) | >= 4.2.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 4.1.0 | +| [aws](#provider\_aws) | >= 4.2.0 | ## Inputs diff --git a/modules/securityhub-baseline/versions.tf b/modules/securityhub-baseline/versions.tf index 90efe1ac..c63c8264 100644 --- a/modules/securityhub-baseline/versions.tf +++ b/modules/securityhub-baseline/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.1.0" + version = ">= 4.2.0" } } } diff --git a/modules/vpc-baseline/README.md b/modules/vpc-baseline/README.md index f8ff9c34..bc48c04d 100644 --- a/modules/vpc-baseline/README.md +++ b/modules/vpc-baseline/README.md @@ -12,13 +12,13 @@ | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.1.4 | -| [aws](#requirement\_aws) | >= 4.1.0 | +| [aws](#requirement\_aws) | >= 4.2.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 4.1.0 | +| [aws](#provider\_aws) | >= 4.2.0 | ## Inputs diff --git a/modules/vpc-baseline/versions.tf b/modules/vpc-baseline/versions.tf index 90efe1ac..c63c8264 100644 --- a/modules/vpc-baseline/versions.tf +++ b/modules/vpc-baseline/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.1.0" + version = ">= 4.2.0" } } } diff --git a/test/fixtures/simple_local/main.tf b/test/fixtures/simple_local/main.tf index ebd000fc..e1929b06 100644 --- a/test/fixtures/simple_local/main.tf +++ b/test/fixtures/simple_local/main.tf @@ -8,7 +8,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.1.0" + version = ">= 4.2.0" } } } diff --git a/test/fixtures/simple_registry/main.tf b/test/fixtures/simple_registry/main.tf index 3479d658..6cb57e75 100644 --- a/test/fixtures/simple_registry/main.tf +++ b/test/fixtures/simple_registry/main.tf @@ -8,7 +8,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.1.0" + version = ">= 4.2.0" } } }