From 4b11ca3f4d61e82fb010006a30339c650b098828 Mon Sep 17 00:00:00 2001 From: Edwin-Pau Date: Fri, 31 Jul 2020 18:33:47 -0600 Subject: [PATCH] AWS: Fix AWS s3 bucket resource The most recent version of the Terraform AWS provider v.3.0.0 released today (July 31, 2020) includes a breaking change where the region attribute is removed from the aws_s3_bucket resource. https://github.com/terraform-providers/terraform-provider-aws/blob/master/CHANGELOG.md This change addresses the breaking change by removing the region field from our aws_s3_bucket resources. See https://github.com/terraform-providers/terraform-provider-aws/pull/14127 for additional info. Signed-off-by: Edwin-Pau --- deployments/aws/lb-connectors-lls/main.tf | 1 - deployments/aws/lb-connectors/main.tf | 1 - deployments/aws/single-connector/main.tf | 1 - 3 files changed, 3 deletions(-) diff --git a/deployments/aws/lb-connectors-lls/main.tf b/deployments/aws/lb-connectors-lls/main.tf index 3306f090..9385cd14 100644 --- a/deployments/aws/lb-connectors-lls/main.tf +++ b/deployments/aws/lb-connectors-lls/main.tf @@ -17,7 +17,6 @@ resource "random_id" "bucket-name" { resource "aws_s3_bucket" "scripts" { bucket = local.bucket_name - region = var.aws_region acl = "private" force_destroy = true diff --git a/deployments/aws/lb-connectors/main.tf b/deployments/aws/lb-connectors/main.tf index 48bf4c00..7c20c22d 100644 --- a/deployments/aws/lb-connectors/main.tf +++ b/deployments/aws/lb-connectors/main.tf @@ -17,7 +17,6 @@ resource "random_id" "bucket-name" { resource "aws_s3_bucket" "scripts" { bucket = local.bucket_name - region = var.aws_region acl = "private" force_destroy = true diff --git a/deployments/aws/single-connector/main.tf b/deployments/aws/single-connector/main.tf index 6befefa3..921fe3cd 100644 --- a/deployments/aws/single-connector/main.tf +++ b/deployments/aws/single-connector/main.tf @@ -17,7 +17,6 @@ resource "random_id" "bucket-name" { resource "aws_s3_bucket" "scripts" { bucket = local.bucket_name - region = var.aws_region acl = "private" force_destroy = true