-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
65 lines (60 loc) · 1.38 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
variable "env" {
type = string
}
variable "tags" {
type = list(string)
}
variable "settings" {
type = list(
object({
type = string
request_definition = object({
url = string
method = string
body = optional(string)
})
request_headers = optional(
object({
Authorization = optional(string)
Content-Type = optional(string)
})
# TODO: Terraform v1.3でmodifierによるデフォルト値のセットがサポートされたら使う
# https://discuss.hashicorp.com/t/request-for-feedback-optional-object-type-attributes-with-defaults-in-v1-3-alpha/40550
# }), {}
)
response = object({
time = number
code = number
})
options_list = object({
tick_every = number
retry = object({
count = number
interval = number
})
monitor_options = object({
renotify_interval = number
})
scheduling = optional(
object({
days = list(number)
from = string
to = string
timezone = string
})
)
})
status = string
})
)
}
variable "is_mention_channel" {
type = bool
}
variable "notify_slack_channel" {
type = string
}
variable "pagerduty_service" {
type = string
default = ""
}