Skip to main content

service_incident_rule

Service Incident Rule

Terraform module to configure Opsgenie Service Incident Rule

Usage

Create Opsgenie Team Routing Rule example

module "service_incident_rule" {
source = "cloudposse/incident-management/opsgenie//modules/service_incident_rule"
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"

service_incident_rule = {
service_id = "..."

incident_rule = {
condition_match_type = "match-all"

conditions = [
{
field = "tags"
operation = "contains"
expected_value = "expected1"
}
]

incident_properties = {
message = "This is a test message"
priority = "P3"

stakeholder_properties = {
message = "Message for stakeholders"
enable = true
}
}
}
}
}

Inputs

Note: service_incident_rule is a map for two reasons:

  • to be able to put whole configuration in yaml file
  • variables defined with type set are not robust enough (can't set default values)
NameDefaultDescriptionRequired
service_incident_rule{}Opsgenie Service Incident Rule configurationYes

Outputs

NameDescription
service_incident_rule_idThe ID of the Opsgenie Service Incident Rule