From 4fa4c676e9eb5e901a8fb981c741b5f1431218db Mon Sep 17 00:00:00 2001 From: Masayuki Morita Date: Thu, 7 Jul 2022 23:38:50 +0900 Subject: [PATCH] Use s3_use_path_style instead of s3_force_path_style Starting from the AWS provider v4, the s3_force_path_style argument has been deprecated. Use the s3_use_path_style argument instead. This option is only required for localstack, which affects only test code and tutorials. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade#s3_use_path_style --- test-fixtures/backend_s3/config.tf | 2 +- test-fixtures/storage_s3/config.tf | 2 +- tfexec/terraform_test.go | 2 +- tfexec/test_helper.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test-fixtures/backend_s3/config.tf b/test-fixtures/backend_s3/config.tf index d7cfe4e..5576b6f 100644 --- a/test-fixtures/backend_s3/config.tf +++ b/test-fixtures/backend_s3/config.tf @@ -26,7 +26,7 @@ provider "aws" { skip_metadata_api_check = true skip_region_validation = true skip_requesting_account_id = true - s3_force_path_style = true + s3_use_path_style = true // mock endpoints with localstack endpoints { diff --git a/test-fixtures/storage_s3/config.tf b/test-fixtures/storage_s3/config.tf index d7cfe4e..5576b6f 100644 --- a/test-fixtures/storage_s3/config.tf +++ b/test-fixtures/storage_s3/config.tf @@ -26,7 +26,7 @@ provider "aws" { skip_metadata_api_check = true skip_region_validation = true skip_requesting_account_id = true - s3_force_path_style = true + s3_use_path_style = true // mock endpoints with localstack endpoints { diff --git a/tfexec/terraform_test.go b/tfexec/terraform_test.go index 5937d58..59d556e 100644 --- a/tfexec/terraform_test.go +++ b/tfexec/terraform_test.go @@ -200,7 +200,7 @@ provider "aws" { skip_metadata_api_check = true skip_region_validation = true skip_requesting_account_id = true - s3_force_path_style = true + s3_use_path_style = true // mock endpoints with localstack endpoints { diff --git a/tfexec/test_helper.go b/tfexec/test_helper.go index 895a72c..8142191 100644 --- a/tfexec/test_helper.go +++ b/tfexec/test_helper.go @@ -268,7 +268,7 @@ provider "aws" { skip_metadata_api_check = true skip_region_validation = true skip_requesting_account_id = true - s3_force_path_style = true + s3_use_path_style = true // mock endpoints with localstack endpoints {