-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
228 lines (178 loc) · 4.8 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
variable "project" {
description = "Name of project this cluster is for. Sets the value of 'MonitoringEnabled' resource tag"
default = ""
}
variable "environment" {
description = "Name of environment this cluster is targeting. Sets the value of 'MonitoringEnabled' resource tag"
default = "env"
}
variable "ecs_instance_daemon_tasks" {
description = "Number of tasks running as daemons on the cluster instances"
default = 0
}
variable "monitoring_enabled" {
description = "Sets the value of 'MonitoringEnabled' resource tag"
default = false
}
variable "vpc_id" {}
variable "allow_ssh_in" {
description = "Set to true to configure SSH access to cluster instances (requires `ssh_public_key_file` and `ssh_allowed_cidr`)."
default = false
}
variable "ssh_public_key_file" {
description = "A publick key file to provide SSH access to the cluster instances"
default = ""
}
variable "ssh_allowed_cidrs" {
description = "A list of CIDRs from which instances accept SSH connections."
type = "list"
default = []
}
variable "allow_http_out" {
description = "Set to true to configure HTTP access from cluster instances (requires `http_allowed_cidr`)."
default = false
}
variable "http_allowed_cidrs" {
description = "A list of CIDRs to which instances can connect via HTTP."
type = "list"
default = []
}
variable "allow_https_out" {
description = "Set to true to configure HTTPS access from cluster instances (requires `https_allowed_cidr`)."
default = false
}
variable "https_allowed_cidrs" {
description = "A list of CIDRs to which instances can connect via HTTPS."
type = "list"
default = []
}
variable "allow_consul_gossip" {
description = "Set to true to configure Consul gossip ports to and from cluster instances (requires `https_allowed_cidr`)."
default = false
}
variable "consul_gossip_allowed_cidrs" {
description = "A list of CIDRs to allow Consul gossip traffic to and from."
type = "list"
default = []
}
variable "allow_consul_client_server_rdp" {
description = "Set to true to configure Consul RDP access from cluster instances (requires `https_allowed_cidr`)."
default = false
}
variable "consul_client_server_rdp_allowed_cidrs" {
description = "A list of CIDRs to which instances can connect via Consul RDP"
type = "list"
default = []
}
variable "allow_logzio_eu_out" {
description = "Set to true to configure (logback appender to) logz.io (EU) access from cluster instances (requires `logzio_eu_allowed_cidr`)."
default = false
}
variable "enable_daemon_tasks" {
description = "Set to true to create the required IAM policies to allow cluster instances to start their own daemon tasks"
default = "false"
}
variable "termination_policies" {
default = ["OldestLaunchConfiguration", "Default"]
}
variable "rolling_update_max_batch_size" {
default = 1
}
variable "rolling_update_pause_time" {
default = "PT5M"
}
variable "rolling_update_wait_on_signal" {
default = false
}
variable "ami_id" {
default = "ami-6944c513"
}
variable "ami_owners" {
default = ["self", "amazon", "aws-marketplace"]
}
variable "lookup_latest_ami" {
default = false
}
variable "root_block_device_type" {
default = "gp2"
}
variable "root_block_device_size" {
default = "8"
}
variable "instance_type" {
default = "t2.micro"
}
variable "cloud_config_content" {}
variable "cloud_config_content_type" {
default = "text/cloud-config"
}
variable "health_check_grace_period" {
default = "600"
}
variable "desired_capacity" {
default = "1"
}
variable "min_size" {
default = "1"
}
variable "max_size" {
default = "1"
}
variable "enabled_metrics" {
default = [
"GroupMinSize",
"GroupMaxSize",
"GroupDesiredCapacity",
"GroupInServiceInstances",
"GroupPendingInstances",
"GroupStandbyInstances",
"GroupTerminatingInstances",
"GroupTotalInstances",
]
type = "list"
}
variable "vpc_private_subnet_ids" {
type = "list"
}
variable "scale_out_cooldown_seconds" {
default = "300"
}
variable "scale_in_cooldown_seconds" {
default = "300"
}
variable "high_cpu_evaluation_periods" {
default = "2"
}
variable "high_cpu_period_seconds" {
default = "300"
}
variable "high_cpu_threshold_percent" {
default = "90"
}
variable "low_cpu_evaluation_periods" {
default = "2"
}
variable "low_cpu_period_seconds" {
default = "300"
}
variable "low_cpu_threshold_percent" {
default = "10"
}
variable "high_memory_evaluation_periods" {
default = "2"
}
variable "high_memory_period_seconds" {
default = "300"
}
variable "high_memory_threshold_percent" {
default = "90"
}
variable "low_memory_evaluation_periods" {
default = "2"
}
variable "low_memory_period_seconds" {
default = "300"
}
variable "low_memory_threshold_percent" {
default = "10"
}