From 918db3d81384b63894f50eca1ebc9dd88952d768 Mon Sep 17 00:00:00 2001 From: Venkata Mutyala Date: Tue, 11 Apr 2023 16:05:59 -0700 Subject: [PATCH] fix: s3 path. (#20) --- save-credentials-to-s3.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/save-credentials-to-s3.tf b/save-credentials-to-s3.tf index ee5c43d9..52c99107 100644 --- a/save-credentials-to-s3.tf +++ b/save-credentials-to-s3.tf @@ -3,7 +3,7 @@ resource "aws_s3_object" "combined_outputs" { provider = aws.primaryregion bucket = module.common_s3.primary_s3_bucket_id - key = "clusters/${each.value}.${aws_route53_zone.main.name}/configurations/credentials.json" + key = "${each.value}.${aws_route53_zone.main.name}/configurations/credentials.json" content = jsonencode({ certmanager_credentials = { (aws_route53_zone.clusters[each.value].name) = aws_iam_access_key.certmanager[each.value] }, externaldns_credentials = { (aws_route53_zone.clusters[each.value].name) = aws_iam_access_key.externaldns[each.value] },