-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
284 lines (236 loc) · 7.78 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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
variable "region" {
type = string
description = "AWS region"
}
variable "description" {
type = string
description = "Short description of the Environment"
}
variable "vpc_id" {
type = string
description = "ID of the VPC"
}
variable "availability_zone_selector" {
type = string
default = "Any 3"
description = "Availability Zone selector"
}
variable "loadbalancer_type" {
type = string
default = "application"
description = "Load Balancer type, e.g. 'application' or 'classic'"
}
variable "loadbalancer_ssl_policy" {
type = string
default = "ELBSecurityPolicy-TLS13-1-2-2021-06"
description = "Specify a security policy to apply to the listener. This option is only applicable to environments with an application load balancer"
}
variable "instance_type" {
type = string
default = "t3.micro"
description = "Instances type"
}
variable "root_volume_type" {
type = string
default = "gp3"
description = "The type of the EBS root volume"
}
variable "root_volume_size" {
type = number
default = 10
description = "The size of the EBS root volume"
}
variable "healthcheck_url" {
type = string
default = "/healthz"
description = "Application Health Check URL. Elastic Beanstalk will call this URL to check the health of the application running on EC2 instances"
}
variable "healthcheck_interval" {
type = number
default = 15
description = "The interval of time, in seconds, that Elastic Load Balancing checks the health of the Amazon EC2 instances of your application"
}
variable "healthcheck_timeout" {
type = number
default = 5
description = "The amount of time, in seconds, to wait for a response during a health check. Note that this option is only applicable to environments with an application load balancer"
}
variable "health_streaming_enabled" {
type = bool
default = false
description = "For environments with enhanced health reporting enabled, whether to create a group in CloudWatch Logs for environment health and archive Elastic Beanstalk environment health data. For information about enabling enhanced health, see aws:elasticbeanstalk:healthreporting:system."
}
variable "health_streaming_delete_on_terminate" {
type = bool
default = false
description = "Whether to delete the log group when the environment is terminated. If false, the health data is kept RetentionInDays days."
}
variable "health_streaming_retention_in_days" {
type = number
default = 7
description = "The number of days to keep the archived health data before it expires."
}
variable "private_subnet_ids" {
type = list(string)
description = "List of subnets"
}
variable "public_subnet_ids" {
type = list(string)
description = "List of subnets"
}
variable "autoscale_min" {
type = number
description = "Minumum instances to launch"
default = 1
}
variable "autoscale_max" {
type = number
description = "Maximum instances to launch"
default = 1
}
variable "autoscale_measure_name" {
type = string
default = "CPUUtilization"
description = "Metric used for your Auto Scaling trigger"
}
variable "autoscale_statistic" {
type = string
default = "Average"
description = "Statistic the trigger should use, such as Average"
}
variable "autoscale_unit" {
type = string
default = "Percent"
description = "Unit for the trigger measurement, such as Bytes"
}
variable "autoscale_lower_bound" {
type = number
default = 20
description = "Minimum level of autoscale metric to remove an instance"
}
variable "autoscale_lower_increment" {
type = number
default = -1
description = "How many Amazon EC2 instances to remove when performing a scaling activity."
}
variable "autoscale_upper_bound" {
type = number
default = 80
description = "Maximum level of autoscale metric to add an instance"
}
variable "autoscale_upper_increment" {
type = number
default = 1
description = "How many Amazon EC2 instances to add when performing a scaling activity"
}
variable "solution_stack_name" {
type = string
description = "Elastic Beanstalk stack, e.g. Docker, Go, Node, Java, IIS. For more info, see https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platforms-supported.html"
}
variable "application_name" {
type = string
}
variable "env_vars" {
type = map(string)
default = {}
description = "Map of custom ENV variables to be provided to the application running on Elastic Beanstalk, e.g. env_vars = { DB_USER = 'admin' DB_PASS = 'xxxxxx' }"
}
variable "dns_zone_id" {
type = string
default = ""
description = "Route53 parent zone ID. The module will create sub-domain DNS record in the parent zone for the EB environment"
}
variable "domain_name" {
type = string
default = ""
}
variable "dns_subdomain" {
type = string
default = ""
description = "The subdomain to create on Route53 for the EB environment. For the subdomain to be created, the `dns_zone_id` variable must be set as well"
}
variable "deployment_version" {
type = string
default = "initial"
}
variable "deployment_bucket" {
type = string
default = null
}
variable "deployment_file_path" {
type = string
default = "Dockerrun.aws.json"
}
variable "deployment_definition" {
type = string
default = null
}
variable "tags" {
description = "A map of additional tags to apply to all VPC resources"
type = map(string)
default = {}
}
variable "subject_alternative_names" {
type = list(string)
default = []
}
variable "validation_allow_overwrite_records" {
type = bool
default = true
}
variable "additional_settings" {
type = list(object({
namespace = string
name = string
value = string
}))
default = []
description = "Additional Elastic Beanstalk settings. For full list of options, see https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html"
}
variable "managed_actions_enabled" {
type = bool
default = false
description = "Enable managed platform updates. When you set this to true, you must also specify a `PreferredStartTime` and `UpdateLevel`"
}
variable "preferred_start_time" {
type = string
default = "Sun:10:00"
description = "Configure a maintenance window for managed actions in UTC"
}
variable "update_level" {
type = string
default = "minor"
description = "The highest level of update to apply with managed platform updates"
}
variable "enable_stream_logs" {
type = bool
default = false
description = "Whether to create groups in CloudWatch Logs for proxy and deployment logs, and stream logs from each instance in your environment"
}
variable "logs_delete_on_terminate" {
type = bool
default = false
description = "Whether to delete the log groups when the environment is terminated. If false, the logs are kept RetentionInDays days"
}
variable "logs_retention_in_days" {
type = number
default = 7
description = "The number of days to keep log events before they expire."
}
variable "keypair" {
type = string
description = "Name of SSH key that will be deployed on Elastic Beanstalk and DataPipeline instance. The key should be present in AWS"
default = ""
}
variable "additional_security_group_rules" {
type = list(object({
from_port = number
to_port = number
protocol = string
type = string
cidr_blocks = list(string)
description = optional(string)
}))
default = []
description = "A list of Security Group rule objects to add to the created security group, in addition to the ones this module normally creates."
}