-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
74 lines (66 loc) · 2.03 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
variable "alarm_topic_arn" {
type = string
description = "The ARN of the SNS topic to receive the alerts"
default = null
}
variable "cluster_name" {
type = string
description = "Name of the ECS cluster"
}
variable "cpu_average" {
type = object({
datapoints_to_alarm = optional(number)
evaluation_periods = optional(number)
period = optional(number)
threshold = optional(number)
})
description = "Average CPUUtilization alarm specs"
default = {}
}
variable "cpu_maximum" {
type = object({
datapoints_to_alarm = optional(number)
evaluation_periods = optional(number)
period = optional(number)
threshold = optional(number)
})
description = "Maximum CPUUtilization alarm specs"
default = {}
}
variable "label_orders" {
type = object({
cloudwatch = optional(list(string)),
ecs = optional(list(string))
})
default = {}
description = "Overrides the `labels_order` for the different labels to modify ID elements appear in the `id`"
}
variable "memory_average" {
type = object({
datapoints_to_alarm = optional(number)
evaluation_periods = optional(number)
period = optional(number)
threshold = optional(number)
})
description = "Average MemoryUtilization alarm specs"
default = {}
}
variable "memory_maximum" {
type = object({
datapoints_to_alarm = optional(number)
evaluation_periods = optional(number)
period = optional(number)
threshold = optional(number)
})
description = "Maximum MemoryUtilization alarm specs"
default = {}
}
variable "treat_missing_data" {
type = string
default = null
description = "The way missing data points will affect the alarm state. Either of the following is supported: breaching, notBreaching"
validation {
condition = contains(["breaching", "notBreaching"], var.treat_missing_data)
error_message = "Valid values: `breaching`, `notBreaching`."
}
}