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.
1 parent 6b3766d commit b12a922Copy full SHA for b12a922
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