From d2d3c3f0486a6af5acc95b0f72b606fe6b669db9 Mon Sep 17 00:00:00 2001 From: ettiee Date: Tue, 16 Nov 2021 13:53:48 +0000 Subject: [PATCH] require aws provider version >= 3.49.0 Since #240 we require secret encrytion on all clusters. Users hit this bug after enabling secret encryption hashicorp/terraform-provider-aws#19986 unless using aws provider >=3.49.0 --- README.md | 2 +- examples/cluster/bottlerocket_node_group/main.tf | 2 +- examples/cluster/environment/main.tf | 2 +- examples/cluster/gpu_node_group/main.tf | 2 +- examples/cluster/main.tf | 2 +- examples/cluster/standard_node_group/main.tf | 2 +- examples/vpc/main.tf | 2 +- modules/asg_node_group/providers.tf | 8 ++++++++ modules/cluster/providers.tf | 8 ++++++++ modules/iam/providers.tf | 8 ++++++++ modules/vpc/providers.tf | 8 ++++++++ versions.tf | 2 +- 12 files changed, 40 insertions(+), 8 deletions(-) create mode 100644 modules/asg_node_group/providers.tf create mode 100644 modules/cluster/providers.tf create mode 100644 modules/iam/providers.tf create mode 100644 modules/vpc/providers.tf diff --git a/README.md b/README.md index 09d0558e..f4085234 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ to assume a common IAM role in the aws provider definition. ```hcl provider "aws" { region = "us-east-1" - version = "3.5.0" + version = "3.49.0" assume_role { role_arn = "arn:aws:iam:::role/Terraform" } diff --git a/examples/cluster/bottlerocket_node_group/main.tf b/examples/cluster/bottlerocket_node_group/main.tf index 93171990..2f593087 100644 --- a/examples/cluster/bottlerocket_node_group/main.tf +++ b/examples/cluster/bottlerocket_node_group/main.tf @@ -1,6 +1,6 @@ provider "aws" { region = "us-east-1" - version = "3.5.0" + version = "3.49.0" allowed_account_ids = ["214219211678"] } diff --git a/examples/cluster/environment/main.tf b/examples/cluster/environment/main.tf index b3f2c4a8..01111e94 100644 --- a/examples/cluster/environment/main.tf +++ b/examples/cluster/environment/main.tf @@ -1,6 +1,6 @@ provider "aws" { region = "us-east-1" - version = "3.5.0" + version = "3.49.0" allowed_account_ids = ["214219211678"] } diff --git a/examples/cluster/gpu_node_group/main.tf b/examples/cluster/gpu_node_group/main.tf index 829cf06a..3bc46208 100644 --- a/examples/cluster/gpu_node_group/main.tf +++ b/examples/cluster/gpu_node_group/main.tf @@ -1,6 +1,6 @@ provider "aws" { region = "us-east-1" - version = "3.5.0" + version = "3.49.0" allowed_account_ids = ["214219211678"] } diff --git a/examples/cluster/main.tf b/examples/cluster/main.tf index 5d66852e..53e3b4e0 100644 --- a/examples/cluster/main.tf +++ b/examples/cluster/main.tf @@ -1,6 +1,6 @@ provider "aws" { region = "us-east-1" - version = "3.5.0" + version = "3.49.0" allowed_account_ids = ["214219211678"] } diff --git a/examples/cluster/standard_node_group/main.tf b/examples/cluster/standard_node_group/main.tf index de3a5a12..40706a83 100644 --- a/examples/cluster/standard_node_group/main.tf +++ b/examples/cluster/standard_node_group/main.tf @@ -1,6 +1,6 @@ provider "aws" { region = "us-east-1" - version = "3.5.0" + version = "3.49.0" allowed_account_ids = ["214219211678"] } diff --git a/examples/vpc/main.tf b/examples/vpc/main.tf index 29345c27..4925a0c5 100644 --- a/examples/vpc/main.tf +++ b/examples/vpc/main.tf @@ -1,6 +1,6 @@ provider "aws" { region = "us-east-1" - version = "3.5.0" + version = "3.49.0" allowed_account_ids = ["214219211678"] } diff --git a/modules/asg_node_group/providers.tf b/modules/asg_node_group/providers.tf new file mode 100644 index 00000000..45e121dc --- /dev/null +++ b/modules/asg_node_group/providers.tf @@ -0,0 +1,8 @@ +terraform { + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 3.49" + } + } +} diff --git a/modules/cluster/providers.tf b/modules/cluster/providers.tf new file mode 100644 index 00000000..4ffd262c --- /dev/null +++ b/modules/cluster/providers.tf @@ -0,0 +1,8 @@ +terraform { + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 3.49.0" + } + } +} diff --git a/modules/iam/providers.tf b/modules/iam/providers.tf new file mode 100644 index 00000000..4ffd262c --- /dev/null +++ b/modules/iam/providers.tf @@ -0,0 +1,8 @@ +terraform { + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 3.49.0" + } + } +} diff --git a/modules/vpc/providers.tf b/modules/vpc/providers.tf new file mode 100644 index 00000000..4ffd262c --- /dev/null +++ b/modules/vpc/providers.tf @@ -0,0 +1,8 @@ +terraform { + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 3.49.0" + } + } +} diff --git a/versions.tf b/versions.tf index d9b6f790..7ca0ad35 100644 --- a/versions.tf +++ b/versions.tf @@ -1,3 +1,3 @@ terraform { - required_version = ">= 0.12" + required_version = ">= 0.12.31" }