-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
187 lines (153 loc) · 4.08 KB
/
variables.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
variable "business" {
description = "PagerDuty business service vs technical service switch."
type = bool
default = false
}
variable "team_id" {
description = "PagerDuty business service owner team ID (Business/Enterprise plan)."
type = string
default = null
}
variable "point_of_contact" {
description = "PagerDuty business service point fo contact."
type = string
default = null
}
variable "name" {
description = "PagerDuty service name"
type = string
}
variable "description" {
description = "PagerDuty service description."
type = string
default = "Managed by Terraform"
}
variable "escalation_policy_id" {
description = "PagerDuty service escalation policy ID."
type = string
default = null
}
variable "acknowledgement_timeout" {
description = "PagerDuty service incident acknowledged-to-triggered state change time in seconds."
type = string
default = "null"
}
variable "auto_resolve_timeout" {
description = "PagerDuty service incident auto resolution time in seconds."
type = string
default = "null"
}
variable "auto_pause_notifications_parameters" {
description = "PagerDuty service transient incident auto pause before triggering (AIOps add-on)."
type = object({
enabled = bool,
timeout = number,
})
default = {
enabled = false
timeout = null
}
}
variable "alert_grouping_setting" {
description = "PagerDuty service alert grouping configuration."
type = object({
type = string,
config = object({
timeout = optional(number, 0),
aggregate = optional(string),
fields = optional(list(string)),
time_window = optional(number, 0),
})
})
default = null
# TODO: Add validations
}
variable "support_hours" {
description = "PagerDuty service support hours."
type = object({
type = optional(string, "fixed_time_per_day")
time_zone = string
days_of_week = list(number)
start_time = string
end_time = string
})
default = null
# TODO: Add validations
}
variable "incident_urgency_rule" {
description = "PagerDuty service incident urgency rule."
type = object({
type = string
urgency = optional(string)
during_support_hours = optional(object({
type = string
urgency = string
}))
outside_support_hours = optional(object({
type = string
urgency = string
}))
})
default = null
# TODO: Add validations
}
variable "scheduled_actions" {
description = "PagerDuty service incident escalation actions related within support hours."
type = object({
type = optional(string, "urgency_change")
to_urgency = string
at = object({
type = optional(string, "named_time")
name = string
})
})
default = null
# TODO: Add validations
}
variable "service_graph" {
description = "PagerDuty service graph components."
type = object({
dependent_services = optional(list(object({
name = string
id = string
type = string
})))
supporting_services = optional(list(object({
name = string
id = string
type = string
})))
})
default = {
dependent_services = []
supporting_services = []
}
}
variable "cloudwatch_integration_enabled" {
description = "PagerDuty service AWS CloudWatch integration switch."
type = bool
default = false
}
variable "datadog_integration_enabled" {
description = "PagerDuty service DataDog integration switch."
type = bool
default = false
}
variable "newrelic_integration_enabled" {
description = "PagerDuty service NewRelic integration switch."
type = bool
default = false
}
variable "slack_connection" {
description = "PagerDuty service Slack connection configuration."
type = object({
workspace_id = string,
channel_id = string,
notification_type = string,
events = list(string)
urgency = optional(string)
priorities = optional(list(string))
})
default = null
# TODO: Add validations
}