Sazabi
Terraform provider

sazabi_notification_delivery_rule

Terraform resource for a project notification delivery rule.

Manages a project notification delivery rule: which notification types are delivered to which shared destinations, optionally filtered by component and severity. Updates perform an atomic full replace. The project is immutable.

Example

resource "sazabi_notification_delivery_rule" "slack_issues" {
  project_id         = sazabi_project.example.id
  notification_types = ["issue_triggered", "issue_resolved"]

  destinations {
    channel         = "slack_channel"
    destination_key = "C0123ABCDEF"
  }

  condition = {
    severities = ["high", "critical"]
  }
}

Arguments

AttributeTypeBehaviorDescription
project_idstringRequiredOwning project. Immutable.
notification_typeslist(string)RequiredOne or more of issue_triggered, issue_resolved, issue_ignored, automation_run_failed.
destinationslist(block)RequiredOne or more destinations. Each has channel (slack_channel, teams_channel, incident_io, pagerduty, rootly, or webhook) and destination_key.
conditionobjectOptional, ComputedOptional severities list (low, medium, high, critical).
component_idsset(string)OptionalRestrict to specific components. Omit to match all.
include_descendantsboolOptional, ComputedInclude descendant components. Defaults to false.
idstringComputedRule ID.

Import

terraform import sazabi_notification_delivery_rule.example "<project_id>/<rule_id>"