-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
131 lines (108 loc) · 4.63 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
variable "create_metric_alarm" {
description = "(Optional) Whether to create the Cloudwatch metric alarm"
type = bool
default = true
}
variable "alarm_name" {
description = "(Required) The descriptive name for the alarm. This name must be unique within the user's AWS account."
type = string
}
variable "alarm_description" {
description = "(Optional) The description for the alarm."
type = string
default = null
}
variable "comparison_operator" {
description = "(Required) The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand. Either of the following is supported: GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold."
type = string
}
variable "evaluation_periods" {
description = "(Required) The number of periods over which data is compared to the specified threshold."
type = number
}
variable "threshold" {
description = "(Required) The value against which the specified statistic is compared."
type = number
}
variable "unit" {
description = "(Optional) The unit for the alarm's associated metric."
type = string
default = null
}
variable "metric_name" {
description = "(Optional) The name for the alarm's associated metric. See docs for supported metrics."
type = string
default = null
}
variable "namespace" {
description = "(Optional) The namespace for the alarm's associated metric. See docs for the list of namespaces. See docs for supported metrics."
type = string
default = null
}
variable "period" {
description = "(Optional) The period in seconds over which the specified statistic is applied."
type = string
default = null
}
variable "statistic" {
description = "(Optional) The statistic to apply to the alarm's associated metric. Either of the following is supported: SampleCount, Average, Sum, Minimum, Maximum"
type = string
default = null
}
variable "actions_enabled" {
description = "(Optional) Indicates whether or not actions should be executed during any changes to the alarm's state. Defaults to true."
type = bool
default = true
}
variable "datapoints_to_alarm" {
description = "(Optional) The number of datapoints that must be breaching to trigger the alarm."
type = number
default = null
}
variable "dimensions" {
description = "(Optional) The dimensions for the alarm's associated metric."
type = any
default = null
}
variable "alarm_actions" {
description = "(Optional) The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN)."
type = list(string)
default = null
}
variable "insufficient_data_actions" {
description = "(Optional) The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN)."
type = list(string)
default = null
}
variable "ok_actions" {
description = "(Optional) The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN)."
type = list(string)
default = null
}
variable "extended_statistic" {
description = "(Optional) The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100."
type = string
default = null
}
variable "treat_missing_data" {
description = "(Optional) Sets how this alarm is to handle missing data points. The following values are supported: missing, ignore, breaching and notBreaching."
type = string
default = "missing"
}
variable "evaluate_low_sample_count_percentiles" {
description = "(Optional) Used only for alarms based on percentiles. If you specify ignore, the alarm state will not change during periods with too few data points to be statistically significant. If you specify evaluate or omit this parameter, the alarm will always be evaluated and possibly change state no matter how many data points are available. The following values are supported: ignore, and evaluate."
type = string
default = null
}
variable "metric_query" {
description = "(Optional) Enables you to create an alarm based on a metric math expression. You may specify at most 20."
type = any
default = [
]
}
variable "tags" {
description = "(Optional) A mapping of tags to assign to all resources"
type = map(string)
default = {
}
}