From e4b692819e6ea03dd5d68f3fec3e199c87784d76 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 22 Apr 2024 14:10:32 -0400 Subject: [PATCH] disables alarms --- terraform/modules/cloudwatch/alarms.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/modules/cloudwatch/alarms.tf b/terraform/modules/cloudwatch/alarms.tf index 83c119ef..9adb1e89 100644 --- a/terraform/modules/cloudwatch/alarms.tf +++ b/terraform/modules/cloudwatch/alarms.tf @@ -43,7 +43,7 @@ resource "aws_cloudwatch_metric_alarm" "load_balancer_request_spike" { threshold_metric_id = "e1" alarm_description = "There has been a large spike in load balancer requests to the ${var.stack_description} cloudfoundry apps loadbalancer" insufficient_data_actions = [] - actions_enabled = true + actions_enabled = var.stack_description == "production" ? true : false ok_actions = [] alarm_actions = [var.cg_platform_notifications_arn, var.cg_platform_slack_notifications_arn] treat_missing_data = "missing"