Skip to content

Commit

Permalink
Merge pull request #79 from Snowflake-Labs/add_processor_switch
Browse files Browse the repository at this point in the history
add switch to disable alert processor
  • Loading branch information
sfc-gh-afedorov authored Jun 5, 2024
2 parents 46082ec + ee843b1 commit 2967e17
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tasks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {}
Expand Down

0 comments on commit 2967e17

Please sign in to comment.