-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
262 lines (213 loc) · 6.84 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
variable "namespace" {
default = "global"
description = "Namespace, which could be your organization name, e.g. 'cp' or 'cloudposse'"
}
variable "stage" {
default = "default"
description = "Stage, e.g. 'prod', 'staging', 'dev', or 'test'"
}
variable "delimiter" {
type = "string"
default = "-"
description = "Delimiter to be used between `name`, `namespace`, `stage`, etc."
}
variable "attributes" {
type = "list"
default = []
description = "Additional attributes (e.g. `policy` or `role`)"
}
variable "name" {
default = "app"
description = "Solution name, e.g. 'app' or 'jenkins'"
}
variable "config_document" {
default = "{ \"CloudWatchMetrics\": {}, \"Version\": 1}"
description = "A JSON document describing the environment and instance metrics to publish to CloudWatch."
}
variable "healthcheck_url" {
default = "/healthcheck"
description = "Application Health Check URL. Elastic Beanstalk will call this URL to check the health of the application running on EC2 instances"
}
variable "notification_protocol" {
default = "email"
description = "Notification protocol"
}
variable "notification_endpoint" {
default = ""
description = "Notification endpoint"
}
variable "notification_topic_arn" {
default = ""
description = "Notification topic arn"
}
variable "notification_topic_name" {
default = ""
description = "Notification topic name"
}
variable "loadbalancer_type" {
default = "classic"
description = "Load Balancer type, e.g. 'application' or 'classic'"
}
variable "loadbalancer_certificate_arn" {
default = ""
description = "Load Balancer SSL certificate ARN. The certificate must be present in AWS Certificate Manager"
}
variable "http_listener_enabled" {
default = "false"
description = "Enable port 80 (http)"
}
variable "ssh_listener_enabled" {
default = "false"
description = "Enable ssh port"
}
variable "ssh_listener_port" {
default = "22"
description = "SSH port"
}
variable "zone_id" {
default = ""
description = "Route53 parent zone ID. The module will create sub-domain DNS records in the parent zone for the EB environment"
}
variable "config_source" {
default = ""
description = "S3 source for config"
}
variable "preferred_start_time" {
default = "Sun:10:00"
description = "Configure a maintenance window for managed actions in UTC"
}
variable "update_level" {
default = "minor"
description = "The highest level of update to apply with managed platform updates"
}
variable "instance_refresh_enabled" {
default = "true"
description = "Enable weekly instance replacement."
}
variable "security_groups" {
type = "list"
description = "List of security groups to be allowed to connect to the EC2 instances"
}
variable "app" {
description = "EBS application name"
}
variable "vpc_id" {
description = "ID of the VPC in which to provision the AWS resources"
}
variable "public_subnets" {
type = "list"
description = "List of public subnets to place Elastic Load Balancer"
}
variable "private_subnets" {
type = "list"
description = "List of private subnets to place EC2 instances"
}
variable "keypair" {
description = "Name of SSH key that will be deployed on Elastic Beanstalk and DataPipeline instance. The key should be present in AWS"
}
variable "root_volume_size" {
default = "8"
description = "The size of the EBS root volume"
}
variable "root_volume_type" {
default = "gp2"
description = "The type of the EBS root volume"
}
variable "availability_zones" {
default = "Any 2"
description = "Choose the number of AZs for your instances"
}
variable "rolling_update_type" {
default = "Health"
description = "Set it to Immutable to apply the configuration change to a fresh group of instances"
}
variable "updating_min_in_service" {
default = "1"
description = "Minimum count of instances up during update"
}
variable "updating_max_batch" {
default = "1"
description = "Maximum count of instances up during update"
}
variable "ssh_source_restriction" {
default = "0.0.0.0/0"
description = "Used to lock down SSH access to the EC2 instances."
}
variable "instance_type" {
default = "t2.micro"
description = "Instances type"
}
variable "associate_public_ip_address" {
default = "false"
description = "Specifies whether to launch instances in your VPC with public IP addresses."
}
variable "autoscale_lower_bound" {
default = "20"
description = "Minimum level of autoscale metric to add instance"
}
variable "autoscale_upper_bound" {
default = "80"
description = "Maximum level of autoscale metric to remove instance"
}
variable "autoscale_min" {
default = "2"
description = "Minumum instances in charge"
}
variable "autoscale_max" {
default = "3"
description = "Maximum instances in charge"
}
variable "solution_stack_name" {
default = ""
description = "Elastic Beanstalk stack, e.g. Docker, Go, Node, Java, IIS. [Read more](http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html)"
}
variable "wait_for_ready_timeout" {
default = "20m"
}
# From: http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticbeanstalk_region
# Via: https://github.com/hashicorp/terraform/issues/7071
variable "alb_zone_id" {
default = {
ap-northeast-1 = "Z1R25G3KIG2GBW"
ap-northeast-2 = "Z3JE5OI70TWKCP"
ap-south-1 = "Z18NTBI3Y7N9TZ"
ap-southeast-1 = "Z16FZ9L249IFLT"
ap-southeast-2 = "Z2PCDNR3VC2G1N"
ca-central-1 = "ZJFCZL7SSZB5I"
eu-central-1 = "Z1FRNW7UH4DEZJ"
eu-west-1 = "Z2NYPWQ7DFZAZH"
eu-west-2 = "Z1GKAAAUGATPF1"
sa-east-1 = "Z10X7K2B4QSOFV"
us-east-1 = "Z117KPS5GTRQ2G"
us-east-2 = "Z14LCN19Q5QHIC"
us-west-1 = "Z1LQECGX5PH1X"
us-west-2 = "Z38NKT9BP95V3O"
}
description = "ALB zone id"
}
variable "tags" {
type = "map"
default = {}
description = "Additional tags (e.g. `map('BusinessUnit`,`XYZ`)"
}
variable "env_default_key" {
default = "DEFAULT_ENV_%d"
description = "Default ENV variable key for Elastic Beanstalk `aws:elasticbeanstalk:application:environment` setting"
}
variable "env_default_value" {
default = "UNSET"
description = "Default ENV variable value for Elastic Beanstalk `aws:elasticbeanstalk:application:environment` setting"
}
variable "env_vars" {
default = {}
type = "map"
description = "Map of custom ENV variables to be provided to the Jenkins application running on Elastic Beanstalk, e.g. `env_vars = { JENKINS_USER = 'admin' JENKINS_PASS = 'xxxxxx' }`"
}
variable "tier" {
default = "WebServer"
description = "Elastic Beanstalk Environment tier, e.g. ('WebServer', 'Worker')"
}
variable "version_label" {
default = ""
description = "Elastic Beanstalk Application version for deploy"
}