File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
infrastructure/terraform/components/dl Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ resource "aws_cloudwatch_log_delivery_destination" "event_bus" {
2+ name = " EventsDeliveryDestination-${ aws_cloudwatch_event_bus . main . name } "
3+
4+ delivery_destination_configuration {
5+ destination_resource_arn = aws_cloudwatch_log_group. event_bus . arn
6+ }
7+ }
8+
9+ resource "aws_cloudwatch_log_delivery" "events_info_logs" {
10+ delivery_destination_arn = aws_cloudwatch_log_delivery_destination. event_bus . arn
11+ delivery_source_name = aws_cloudwatch_log_delivery_source. main_info_logs . name
12+ }
13+
14+ resource "aws_cloudwatch_log_delivery" "events_error_logs" {
15+ delivery_destination_arn = aws_cloudwatch_log_delivery_destination. event_bus . arn
16+ delivery_source_name = aws_cloudwatch_log_delivery_source. main_error_logs . name
17+ depends_on = [
18+ aws_cloudwatch_log_delivery . events_info_logs
19+ ]
20+ }
21+
22+ resource "aws_cloudwatch_log_delivery" "events_trace_logs" {
23+ delivery_destination_arn = aws_cloudwatch_log_delivery_destination. event_bus . arn
24+ delivery_source_name = aws_cloudwatch_log_delivery_source. main_trace_logs . name
25+ depends_on = [
26+ aws_cloudwatch_log_delivery . events_error_logs
27+ ]
28+ }
You can’t perform that action at this time.
0 commit comments