Skip to content

Commit

Permalink
fix: s3 path for credentials output (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
venkatamutyala authored Mar 28, 2023
1 parent 7ed3721 commit 6d9b856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions save-credentials-to-s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 6d9b856

Please sign in to comment.