Skip to content

Commit

Permalink
Adding back count
Browse files Browse the repository at this point in the history
  • Loading branch information
nsindhu26 committed Sep 27, 2024
1 parent 7f65d12 commit 62a5213
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infrastructure/stacks/blue-green-link/cloudwatch-alarms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 62a5213

Please sign in to comment.