generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
89 lines (76 loc) · 2.39 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
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = ""
description = "Name (e.g. `app` or `cluster`)."
}
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "label_order" {
type = list(any)
default = ["name", "environment"]
description = "Label order, e.g. `name`."
}
variable "managedby" {
type = string
default = "terraform-do-modules"
description = "ManagedBy, eg 'terraform-do-modules'"
}
variable "target_url" {
type = list(any)
default = []
description = "The endpoint to perform healthchecks on."
}
variable "type" {
type = list(string)
default = []
description = "The type of health check to perform: 'ping' 'http' 'https'."
}
variable "regions" {
type = list(string)
default = ["us_east", "us_west", "eu_west", "se_asia"]
description = "An array containing the selected regions to perform healthchecks from: 'us_east', 'us_west', 'eu_west', 'se_asia''"
}
variable "enable" {
type = bool
default = true
description = "A boolean value indicating whether the check is enabled/disabled."
}
variable "enabled" {
type = bool
default = true
description = "A boolean value indicating whether the check is enabled/disabled."
}
variable "alert_type" {
type = list(any)
default = ["down_global"]
description = "The type of health check to perform. Must be one of latency, down, down_global or ssl_expiry."
}
variable "threshold" {
type = list(any)
default = [1]
description = "The threshold at which the alert will enter a trigger state. The specific threshold is dependent on the alert type."
}
variable "comparison" {
type = list(any)
default = ["less_than"]
description = "The comparison operator used against the alert's threshold. Must be one of greater_than or less_than."
}
variable "period" {
type = list(string)
default = ["2m"]
description = "Period of time the threshold must be exceeded to trigger the alert. Must be one of 2m, 3m, 5m, 10m, 15m, 30m or 1h."
}
variable "notifications" {
type = list(any)
default = []
description = "The notification settings for a trigger alert."
}
variable "resource_alerts" {
type = map(any)
default = {}
}