From 69ece50ba8ba2309da5f5a2fe8f14f5f80368804 Mon Sep 17 00:00:00 2001 From: Bora Kou Date: Fri, 27 Jan 2023 07:56:30 -0800 Subject: [PATCH 1/2] Fix AWS Gov Cloud S3 bucket output --- output.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output.tf b/output.tf index 855f34c..a40af5a 100644 --- a/output.tf +++ b/output.tf @@ -5,7 +5,7 @@ output "storage_integration_name" { output "bucket_url" { description = "GEFF S3 Bucket URL" - value = "s3://${aws_s3_bucket.geff_bucket.id}/" + value = var.arn_format == "aws-us-gov" ? "s3gov://${aws_s3_bucket.geff_bucket.id}/" : "s3://${aws_s3_bucket.geff_bucket.id}/" } output "bucket_arn" { From 25aa4e8f8863c37dd0a3bd63a37cc5bbdb8512eb Mon Sep 17 00:00:00 2001 From: Bora Kou Date: Fri, 27 Jan 2023 08:07:51 -0800 Subject: [PATCH 2/2] Fix spacing --- output.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output.tf b/output.tf index a40af5a..8f92efa 100644 --- a/output.tf +++ b/output.tf @@ -5,7 +5,7 @@ output "storage_integration_name" { output "bucket_url" { description = "GEFF S3 Bucket URL" - value = var.arn_format == "aws-us-gov" ? "s3gov://${aws_s3_bucket.geff_bucket.id}/" : "s3://${aws_s3_bucket.geff_bucket.id}/" + value = var.arn_format == "aws-us-gov" ? "s3gov://${aws_s3_bucket.geff_bucket.id}/" : "s3://${aws_s3_bucket.geff_bucket.id}/" } output "bucket_arn" {