pagerduty_escalation_policy

An escalation policy determines what user or schedule will be notified first, second, and so on when an incident is triggered. Escalation policies are used by one or more services.

Example Usage

resource "pagerduty_team" "example" {
  name        = "Engineering"
  description = "All engineering"
}

resource "pagerduty_user" "example" {
  name  = "Earline Greenholt"
  email = "125.greenholt.earline@graham.name"
  teams = [pagerduty_team.example.id]
}

resource "pagerduty_escalation_policy" "example" {
  name      = "Engineering Escalation Policy"
  num_loops = 2
  teams     = [pagerduty_team.example.id]

  rule {
    escalation_delay_in_minutes = 10
    target {
      type = "user_reference"
      id   = pagerduty_user.example.id
    }
    target {
      type = "user_reference"
      id   = pagerduty_user.example2.id
    }
  }
}

Argument Reference

The following arguments are supported:

Escalation rules (rule) supports the following:

Incident assignment strategy for Escalation Rule (escalation_rule_assignment_strategy) supports the following:

Targets (target) supports the following:

Attributes Reference

The following attributes are exported:

Import

Escalation policies can be imported using the id, e.g.

$ terraform import pagerduty_escalation_policy.main PLBP09X