Skip to content

Commit 908b274

Browse files
authored
Merge pull request #138 from schubergphilis/fvb/logging-tweaks
fix: Fix logging path
2 parents 2b89754 + e8f3780 commit 908b274

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

logging.tf

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ resource "aws_cloudwatch_log_delivery_destination" "access_logs" {
1717
tags = var.tags
1818

1919
delivery_destination_configuration {
20-
destination_resource_arn = "arn:aws:s3:::${var.logging.target_bucket}"
20+
destination_resource_arn = "arn:aws:s3:::${var.logging.target_bucket}/${var.logging.target_prefix}"
2121
}
2222
}
2323

@@ -28,8 +28,4 @@ resource "aws_cloudwatch_log_delivery" "access_logs" {
2828
delivery_source_name = aws_cloudwatch_log_delivery_source.access_logs[0].name
2929
delivery_destination_arn = aws_cloudwatch_log_delivery_destination.access_logs[0].arn
3030
tags = var.tags
31-
32-
s3_delivery_configuration {
33-
suffix_path = var.logging.target_prefix
34-
}
3531
}

0 commit comments

Comments
 (0)