-
Notifications
You must be signed in to change notification settings - Fork 2
/
escalation-policies.tf
79 lines (74 loc) · 1.68 KB
/
escalation-policies.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/* escalation-policies.tf */
resource "pagerduty_escalation_policy" "autobots-esc-policy" {
name = "Autobots Policy"
num_loops = 5
rule {
escalation_delay_in_minutes = 15
target {
type = "schedule_reference"
id = "${pagerduty_schedule.autobots-schedule.id}"
}
}
rule {
escalation_delay_in_minutes = 15
target {
type = "user_reference"
id = "${pagerduty_user.optimus_prime.id}"
}
}
}
resource "pagerduty_escalation_policy" "decepticons-esc-policy" {
name = "Decepticons Policy"
num_loops = 5
rule {
escalation_delay_in_minutes = 15
target {
type = "schedule_reference"
id = "${pagerduty_schedule.decepticons-schedule.id}"
}
}
rule {
escalation_delay_in_minutes = 15
target {
type = "user_reference"
id = "${pagerduty_user.starscream.id}"
}
}
}
resource "pagerduty_escalation_policy" "noc-ep" {
name = "NOC EP"
num_loops = 5
rule {
escalation_delay_in_minutes = 5
target {
type = "schedule_reference"
id = "${pagerduty_schedule.noc-schedule.id}"
}
}
rule {
escalation_delay_in_minutes = 5
target {
type = "schedule_reference"
id = "${pagerduty_schedule.noc-schedule.id}"
}
target {
type = "schedule_reference"
id = "${pagerduty_schedule.noc-na-schedule.id}"
}
}
rule {
escalation_delay_in_minutes = 5
target {
type = "schedule_reference"
id = "${pagerduty_schedule.noc-schedule.id}"
}
target {
type = "schedule_reference"
id = "${pagerduty_schedule.noc-na-schedule.id}"
}
target {
type = "user_reference"
id = "${pagerduty_user.dan_s.id}"
}
}
}