Skip to content

Commit 7f04a9b

Browse files
committed
CCM-13146 remove config that hopefully aws will add for us automatically
1 parent e8b9836 commit 7f04a9b

File tree

3 files changed

+0
-87
lines changed

3 files changed

+0
-87
lines changed

infrastructure/terraform/components/dl/cloudwatch_event_bus.tf

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,3 @@ 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-
}

infrastructure/terraform/components/dl/cloudwatch_log_delivery_event_bus.tf

Lines changed: 0 additions & 28 deletions
This file was deleted.

infrastructure/terraform/components/dl/cloudwatch_log_group_event_bus.tf

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,3 @@ resource "aws_cloudwatch_log_group" "event_bus" {
33
retention_in_days = var.log_retention_in_days
44
kms_key_id = module.kms.key_arn
55
}
6-
7-
# resource "aws_cloudwatch_log_resource_policy" "event_bus" {
8-
# policy_document = data.aws_iam_policy_document.event_bus_logs.json
9-
# policy_name = "AWSLogDeliveryWrite-${aws_cloudwatch_event_bus.main.name}"
10-
# }
11-
12-
# data "aws_iam_policy_document" "event_bus_logs" {
13-
# statement {
14-
# effect = "Allow"
15-
# principals {
16-
# type = "Service"
17-
# identifiers = [
18-
# "delivery.logs.amazonaws.com",
19-
# "events.amazonaws.com"
20-
# ]
21-
# }
22-
# actions = [
23-
# "logs:CreateLogStream",
24-
# "logs:PutLogEvents"
25-
# ]
26-
# resources = [
27-
# aws_cloudwatch_log_group.event_bus.arn,
28-
# "${aws_cloudwatch_log_group.event_bus.arn}:log-stream:*"
29-
# ]
30-
# condition {
31-
# test = "StringEquals"
32-
# variable = "aws:SourceAccount"
33-
# values = [var.aws_account_id]
34-
# }
35-
# condition {
36-
# test = "ArnLike"
37-
# variable = "aws:SourceArn"
38-
# values = [
39-
# aws_cloudwatch_log_delivery_source.main_info_logs.arn,
40-
# aws_cloudwatch_log_delivery_source.main_error_logs.arn,
41-
# aws_cloudwatch_log_delivery_source.main_trace_logs.arn
42-
# ]
43-
# }
44-
# }
45-
# }

0 commit comments

Comments
 (0)