-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
204 lines (165 loc) · 5.62 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
variable "region" {
type = string
description = "AWS region"
}
variable "availability_zones" {
type = list(string)
description = "List of availability zones"
}
variable "namespace" {
type = string
description = "Namespace, which could be your organization name, e.g. 'eg' or 'cp'"
}
variable "stage" {
type = string
description = "Stage, e.g. 'prod', 'staging', 'dev', or 'test'"
}
variable "name" {
type = string
description = "Solution name, e.g. 'app' or 'cluster'"
}
variable "delimiter" {
type = string
default = "-"
description = "Delimiter to be used between `name`, `namespace`, `stage`, etc."
}
variable "attributes" {
type = list(string)
default = []
description = "Additional attributes (e.g. `1`)"
}
variable "tags" {
type = map(string)
default = {}
description = "Additional tags (e.g. `map('BusinessUnit`,`XYZ`)"
}
variable "description" {
type = string
description = "Short description of the Environment"
}
variable "environment_type" {
type = string
description = "Environment type, e.g. 'LoadBalanced' or 'SingleInstance'. If setting to 'SingleInstance', `rolling_update_type` must be set to 'Time', `updating_min_in_service` must be set to 0, and `loadbalancer_subnets` will be unused (it applies to the ELB, which does not exist in SingleInstance environments)"
}
variable "loadbalancer_type" {
type = string
description = "Load Balancer type, e.g. 'application' or 'classic'"
}
variable "dns_zone_id" {
type = string
description = "Route53 parent zone ID. The module will create sub-domain DNS record in the parent zone for the EB environment"
}
variable "availability_zone_selector" {
type = string
description = "Availability Zone selector"
}
variable "instance_type" {
type = string
description = "Instances type"
}
variable "autoscale_min" {
type = number
description = "Minumum instances to launch"
}
variable "autoscale_max" {
type = number
description = "Maximum instances to launch"
}
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 "wait_for_ready_timeout" {
type = string
description = "The maximum duration to wait for the Elastic Beanstalk Environment to be in a ready state before timing out"
}
variable "tier" {
type = string
description = "Elastic Beanstalk Environment tier, e.g. 'WebServer' or 'Worker'"
}
variable "version_label" {
type = string
description = "Elastic Beanstalk Application version to deploy"
}
variable "force_destroy" {
type = bool
description = "Force destroy the S3 bucket for load balancer logs"
}
variable "rolling_update_enabled" {
type = bool
description = "Whether to enable rolling update"
}
variable "rolling_update_type" {
type = string
description = "`Health` or `Immutable`. Set it to `Immutable` to apply the configuration change to a fresh group of instances"
}
variable "updating_min_in_service" {
type = number
description = "Minimum number of instances in service during update"
}
variable "updating_max_batch" {
type = number
description = "Maximum number of instances to update at once"
}
variable "healthcheck_url" {
type = string
description = "Application Health Check URL. Elastic Beanstalk will call this URL to check the health of the application running on EC2 instances"
}
variable "application_port" {
type = number
description = "Port application is listening on"
}
variable "root_volume_size" {
type = number
description = "The size of the EBS root volume"
}
variable "root_volume_type" {
type = string
description = "The type of the EBS root volume"
}
variable "autoscale_measure_name" {
type = string
description = "Metric used for your Auto Scaling trigger"
}
variable "autoscale_statistic" {
type = string
description = "Statistic the trigger should use, such as Average"
}
variable "autoscale_unit" {
type = string
description = "Unit for the trigger measurement, such as Bytes"
}
variable "autoscale_lower_bound" {
type = number
description = "Minimum level of autoscale metric to remove an instance"
}
variable "autoscale_lower_increment" {
type = number
description = "How many Amazon EC2 instances to remove when performing a scaling activity."
}
variable "autoscale_upper_bound" {
type = number
description = "Maximum level of autoscale metric to add an instance"
}
variable "autoscale_upper_increment" {
type = number
description = "How many Amazon EC2 instances to add when performing a scaling activity"
}
variable "elb_scheme" {
type = string
description = "Specify `internal` if you want to create an internal load balancer in your Amazon VPC so that your Elastic Beanstalk application cannot be accessed from outside your Amazon VPC"
}
variable "additional_settings" {
type = list(object({
namespace = string
name = string
value = string
}))
description = "Additional Elastic Beanstalk setttings. For full list of options, see https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html"
default = []
}
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' }"
}