File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
infrastructure/terraform/components/dl Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments