diff --git a/terraform/environments/data-platform-apps-and-tools/modules/auth0-log-streams/main.tf b/terraform/environments/data-platform-apps-and-tools/modules/auth0-log-streams/main.tf index c5d54e3c863..00e4b01abd6 100644 --- a/terraform/environments/data-platform-apps-and-tools/modules/auth0-log-streams/main.tf +++ b/terraform/environments/data-platform-apps-and-tools/modules/auth0-log-streams/main.tf @@ -61,32 +61,32 @@ resource "aws_cloudwatch_event_bus" "this" { event_source_name = data.aws_cloudwatch_event_source.this.name } -resource "aws_cloudwatch_log_group" "this" { - name = local.cloudwatch_log_group_name +# resource "aws_cloudwatch_log_group" "this" { +# name = local.cloudwatch_log_group_name - kms_key_id = module.kms_key.key_arn - retention_in_days = var.retention_in_days -} +# kms_key_id = module.kms_key.key_arn +# retention_in_days = var.retention_in_days +# } -data "aws_iam_policy_document" "this" { - statement { - actions = [ - "logs:CreateLogStream", - "logs:PutLogEvents", - "logs:PutLogEventsBatch" - ] - principals { - type = "Service" - identifiers = ["events.amazonaws.com", "delivery.logs.amazonaws.com"] - } - resources = ["${aws_cloudwatch_log_group.this.arn}:*"] - } -} +# data "aws_iam_policy_document" "this" { +# statement { +# actions = [ +# "logs:CreateLogStream", +# "logs:PutLogEvents", +# "logs:PutLogEventsBatch" +# ] +# principals { +# type = "Service" +# identifiers = ["events.amazonaws.com", "delivery.logs.amazonaws.com"] +# } +# resources = ["${aws_cloudwatch_log_group.this.arn}:*"] +# } +# } -resource "aws_cloudwatch_log_resource_policy" "this" { - policy_name = "events-to-cloudwatch-logs" - policy_document = data.aws_iam_policy_document.this.json -} +# resource "aws_cloudwatch_log_resource_policy" "this" { +# policy_name = "events-to-cloudwatch-logs" +# policy_document = data.aws_iam_policy_document.this.json +# } resource "aws_cloudwatch_event_rule" "this" { name = var.name @@ -99,9 +99,9 @@ resource "aws_cloudwatch_event_rule" "this" { }) } -resource "aws_cloudwatch_event_target" "this" { - target_id = "auth0-to-cloudwatch-logs" - event_bus_name = var.event_source_name - rule = aws_cloudwatch_event_rule.this.name - arn = aws_cloudwatch_log_group.this.arn -} +# resource "aws_cloudwatch_event_target" "this" { +# target_id = "auth0-to-cloudwatch-logs" +# event_bus_name = var.event_source_name +# rule = aws_cloudwatch_event_rule.this.name +# arn = aws_cloudwatch_log_group.this.arn +# }