Skip to content

Commit

Permalink
DACP: delete ecs cloudwatch filter (#3639)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-k1998 authored Oct 12, 2023
1 parent f9c762b commit c31b0fd
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions terraform/environments/dacp/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -256,20 +256,3 @@ resource "aws_cloudwatch_event_target" "logs" {
target_id = "send-to-cloudwatch"
arn = aws_cloudwatch_log_group.deployment_logs.arn
}

# CloudWatch logs error filter metric
resource "aws_cloudwatch_log_metric_filter" "ecs_errors" {
name = "ECS Errors"
pattern = "{ $.detail.group = \"service:dacp\" && $.detail.stopCode = \"*\" }"
log_group_name = aws_cloudwatch_log_group.deployment_logs.name

metric_transformation {
name = "ECSErrors"
namespace = "ECSEvents"
value = "1"
unit = "Count"
dimensions = {
group = "$.detail.group"
}
}
}

0 comments on commit c31b0fd

Please sign in to comment.