Skip to content

Commit f1ad1cd

Browse files
committed
CCM-13146 put log devivery sources back
1 parent 2adc29b commit f1ad1cd

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

infrastructure/terraform/components/dl/cloudwatch_event_bus.tf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,22 @@ resource "aws_cloudwatch_event_bus" "main" {
88
level = "TRACE"
99
}
1010
}
11+
12+
# CloudWatch Log Delivery Sources for INFO, ERROR, and TRACE logs
13+
resource "aws_cloudwatch_log_delivery_source" "main_info_logs" {
14+
name = "EventBusSource-${aws_cloudwatch_event_bus.main.name}-INFO_LOGS"
15+
log_type = "INFO_LOGS"
16+
resource_arn = aws_cloudwatch_event_bus.main.arn
17+
}
18+
19+
resource "aws_cloudwatch_log_delivery_source" "main_error_logs" {
20+
name = "EventBusSource-${aws_cloudwatch_event_bus.main.name}-ERROR_LOGS"
21+
log_type = "ERROR_LOGS"
22+
resource_arn = aws_cloudwatch_event_bus.main.arn
23+
}
24+
25+
resource "aws_cloudwatch_log_delivery_source" "main_trace_logs" {
26+
name = "EventBusSource-${aws_cloudwatch_event_bus.main.name}-TRACE_LOGS"
27+
log_type = "TRACE_LOGS"
28+
resource_arn = aws_cloudwatch_event_bus.main.arn
29+
}

0 commit comments

Comments
 (0)