diff --git a/infrastructure/stacks/blue-green-link/cloudwatch-alarms.tf b/infrastructure/stacks/blue-green-link/cloudwatch-alarms.tf index 2e65b9ff6..9a6520d1c 100644 --- a/infrastructure/stacks/blue-green-link/cloudwatch-alarms.tf +++ b/infrastructure/stacks/blue-green-link/cloudwatch-alarms.tf @@ -15,7 +15,7 @@ resource "aws_cloudwatch_metric_alarm" "service_matcher_invalid_postcode_alert" } resource "aws_cloudwatch_metric_alarm" "service_matcher_invalid_opening_times_alert" { - # count = can(regex("ds-*", var.blue_green_environment)) ? 0 : 1 + count = can(regex("ds-*", var.blue_green_environment)) ? 0 : 1 alarm_actions = [data.aws_sns_topic.sns_topic_app_alerts_for_slack_default_region.arn] alarm_description = "Events received from NHS UK with invalid opening times" alarm_name = "${var.project_id} | ${var.blue_green_environment} | Invalid Opening Times" @@ -49,7 +49,7 @@ resource "aws_cloudwatch_metric_alarm" "holiding_sqs_dlq_alert" { } resource "aws_cloudwatch_metric_alarm" "update_request_dlq_alert" { - # count = can(regex("ds-*", var.blue_green_environment)) ? 0 : 1 + count = can(regex("ds-*", var.blue_green_environment)) ? 0 : 1 alarm_actions = [data.aws_sns_topic.sns_topic_app_alerts_for_slack_default_region.arn] alarm_description = "Alert for when the Update Request DLQ has recieved messages" alarm_name = "${var.project_id} | ${var.blue_green_environment} | Update Requests DLQ'd"