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" {}