0
0
llucycodes42
This policy defines a number of escalation loops and teams - two loops and two teams. The rule defines a delay in minutes for escalation from 10 to 60. The target specifies a user - in this case, whoever is assigned the id of pagerduty_user.example.id.
Shortcut: tf_pagerduty_escalation_policy
resource "pagerduty_escalation_policy" "${myResourceName}" {
name = "my-${myResourceName}"
description = "my-description-${myResourceName}"
num_loops = 2
teams = ["\${pagerduty_team.example.id}"]
rule {
escalation_delay_in_minutes = 10
target {
type = "user"
id = "\${pagerduty_user.example.id}"
}
}
}