From 6d9b8567618b70a024e117d45a5d5f89cbfd4157 Mon Sep 17 00:00:00 2001 From: Venkata Mutyala Date: Tue, 28 Mar 2023 11:57:39 -0700 Subject: [PATCH] fix: s3 path for credentials output (#17) --- save-credentials-to-s3.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/save-credentials-to-s3.tf b/save-credentials-to-s3.tf index 08fa0d69..15658d31 100644 --- a/save-credentials-to-s3.tf +++ b/save-credentials-to-s3.tf @@ -11,9 +11,9 @@ resource "aws_s3_object" "combined_outputs" { } provider = aws.primaryregion bucket = module.common_s3.primary_s3_bucket_id - key = "${each.key}/configurations/credentials.json" + key = "${each.key}.${aws_route53_zone.main.name}/configurations/credentials.json" content = jsonencode(each.value) content_type = "application/json" server_side_encryption = "AES256" acl = "private" -} \ No newline at end of file +}