We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2b89754 + e8f3780 commit 908b274Copy full SHA for 908b274
logging.tf
@@ -17,7 +17,7 @@ resource "aws_cloudwatch_log_delivery_destination" "access_logs" {
17
tags = var.tags
18
19
delivery_destination_configuration {
20
- destination_resource_arn = "arn:aws:s3:::${var.logging.target_bucket}"
+ destination_resource_arn = "arn:aws:s3:::${var.logging.target_bucket}/${var.logging.target_prefix}"
21
}
22
23
@@ -28,8 +28,4 @@ resource "aws_cloudwatch_log_delivery" "access_logs" {
28
delivery_source_name = aws_cloudwatch_log_delivery_source.access_logs[0].name
29
delivery_destination_arn = aws_cloudwatch_log_delivery_destination.access_logs[0].arn
30
31
-
32
- s3_delivery_configuration {
33
- suffix_path = var.logging.target_prefix
34
- }
35
0 commit comments