diff --git a/modules/alerting/main.tf b/modules/alerting/main.tf index 8d8bf12f..fc363043 100644 --- a/modules/alerting/main.tf +++ b/modules/alerting/main.tf @@ -327,6 +327,8 @@ locals { } resource "google_monitoring_alert_policy" "service_failure_rate_non_eventing" { + count = var.squad == "" ? 1 : 0 + # In the absence of data, incident will auto-close after an hour alert_strategy { auto_close = "3600s" @@ -377,6 +379,8 @@ resource "google_monitoring_alert_policy" "service_failure_rate_non_eventing" { } resource "google_monitoring_alert_policy" "service_failure_rate_eventing" { + count = var.squad == "" ? 1 : 0 + # In the absence of data, incident will auto-close after an hour alert_strategy { auto_close = "3600s"