This repository has been archived by the owner on Sep 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
176 lines (139 loc) · 5.43 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
# We can not only check the var.topic_arn !="" because of the Terraform error: The "count" value depends on resource attributes that cannot be determined until apply, so Terraform cannot predict how many instances will be created.
variable "create_topic" {
type = bool
description = "Create SNS topic? If set to false you must set topic_arn as well!"
default = true
}
variable "topic_arn" {
type = string
description = "Optional SNS topic ARN if create_topic := false (usually the output of the modules marbot-monitoring-basic or marbot-standalone-topic)."
default = ""
}
variable "stage" {
type = string
description = "marbot stage (never change this!)."
default = "v1"
}
variable "endpoint_id" {
type = string
description = "Your marbot endpoint ID (to get this value: select a channel where marbot belongs to and send a message like this: \"@marbot show me my endpoint id\")."
}
variable "enabled" {
type = bool
description = "Turn the module on or off"
default = true
}
variable "module_version_monitoring_enabled" {
type = bool
description = "Report the module version back to marbot to notify if updates are available."
default = true
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}
variable "instance_id" {
type = string
description = "The instance ID of the EC2 instance that you want to monitor."
}
variable "cpu_utilization" {
type = string
description = "CPU utilization (static|anomaly_detection|static_anomaly_detection|off)."
default = "static"
}
variable "cpu_utilization_threshold" {
type = number
description = "The maximum percentage of CPU utilization (0-100)."
default = 80
}
variable "cpu_utilization_period" {
type = number
description = "The period in seconds over which the specified statistic is applied (<= 86400 and multiple of 60)."
default = 600
}
variable "cpu_utilization_evaluation_periods" {
type = number
description = "The number of periods over which data is compared to the specified threshold (>= 1 and $period*$evaluation_periods <= 86400)."
default = 1
}
variable "cpu_credit_balance" {
type = string
description = "CPU burst credits for t2 standard instances (static|anomaly_detection|off)."
default = "static"
}
variable "cpu_credit_balance_threshold" {
type = number
description = "The minimum number of CPU credits remaining in the burst bucket (>= 0)."
default = 20
}
variable "cpu_credit_balance_period" {
type = number
description = "The period in seconds over which the specified statistic is applied (<= 86400 and multiple of 60)."
default = 600
}
variable "cpu_credit_balance_evaluation_periods" {
type = number
description = "The number of periods over which data is compared to the specified threshold (>= 1 and $period*$evaluation_periods <= 86400)."
default = 1
}
variable "ebs_io_credit_balance" {
type = string
description = "EBS I/O burst credits for smaller EBS optimized instance types (static|anomaly_detection|off)."
default = "static"
}
variable "ebs_io_credit_balance_threshold" {
type = number
description = "The minimum percentage of EBS I/O credits remaining in the burst bucket (0-100)."
default = 20
}
variable "ebs_io_credit_balance_period" {
type = number
description = "The period in seconds over which the specified statistic is applied (<= 86400 and multiple of 60)."
default = 600
}
variable "ebs_io_credit_balance_evaluation_periods" {
type = number
description = "The number of periods over which data is compared to the specified threshold (>= 1 and $period*$evaluation_periods <= 86400)."
default = 1
}
variable "ebs_throughput_credit_balance" {
type = string
description = "EBS throughput burst credits for smaller EBS optimized instance types (static|anomaly_detection|off)."
default = "static"
}
variable "ebs_throughput_credit_balance_threshold" {
type = number
description = "The minimum percentage of EBS throughput credits remaining in the burst bucket (0-100)."
default = 20
}
variable "ebs_throughput_credit_balance_period" {
type = number
description = "The period in seconds over which the specified statistic is applied (<= 86400 and multiple of 60)."
default = 600
}
variable "ebs_throughput_credit_balance_evaluation_periods" {
type = number
description = "The number of periods over which data is compared to the specified threshold (>= 1 and $period*$evaluation_periods <= 86400)."
default = 1
}
variable "network_utilization" {
type = string
description = "Network utilization (static|anomaly_detection|static_anomaly_detection|off)."
default = "static"
}
variable "network_utilization_threshold" {
type = number
description = "The maximum percentage of network utilization (0-100)."
default = 80
}
variable "network_utilization_period" {
type = number
description = "The period in seconds over which the specified statistic is applied (<= 86400 and multiple of 60)."
default = 600
}
variable "network_utilization_evaluation_periods" {
type = number
description = "The number of periods over which data is compared to the specified threshold (>= 1 and $period*$evaluation_periods <= 86400)."
default = 1
}