From ee843b120f5da144b4bddc6467ac7504af75493c Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 5 Jun 2024 11:43:04 -0700 Subject: [PATCH] add switch to disable alert processor --- tasks.tf | 2 +- variables.tf | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tasks.tf b/tasks.tf index 59dac59..cf1d4bd 100644 --- a/tasks.tf +++ b/tasks.tf @@ -43,7 +43,7 @@ resource "snowflake_task" "alert_processor_task" { after = [snowflake_task.snowalert_suppression_merge_task.name] sql_statement = "CALL ${local.results_schema}.${snowflake_procedure.alert_processor_with_default_correlation_period.name}()" - enabled = true + enabled = var.enable_alert_processor depends_on = [ module.snowalert_grants diff --git a/variables.tf b/variables.tf index 0bf1446..4207d82 100644 --- a/variables.tf +++ b/variables.tf @@ -274,6 +274,12 @@ variable "enable_multiple_grants" { default = true } +variable "enable_alert_processor" { + type = bool + description = "Enable the alert processor for alert correlation" + default = true +} + data "aws_caller_identity" "current" {} data "aws_region" "current" {} data "aws_partition" "current" {}