We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70181eb commit d4fe7ebCopy full SHA for d4fe7eb
1 file changed
infrastructure/terraform/modules/s3bucket/s3_bucket_logging.tf
@@ -4,5 +4,5 @@ resource "aws_s3_bucket_logging" "main" {
4
5
# Enable S3 Bucket Logging to the logs bucket
6
target_bucket = var.bucket_logging_target["bucket"]
7
- target_prefix = lookup(var.bucket_logging_target, "prefix", "${var.name}/")
+ target_prefix = lookup(var.bucket_logging_target, "prefix", "${aws_s3_bucket.main.id}/")
8
}
0 commit comments