-
Notifications
You must be signed in to change notification settings - Fork 4
/
variables.tf
202 lines (168 loc) · 6.53 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
variable "name" {
type = string
description = "Name of the ECS Service."
}
variable "stage" {
type = string
description = "Stage of the ECS Service, e.g staging, beta, qa, prod."
}
variable "tags" {
type = map(string)
description = "Key-value map of resource tags."
}
variable "vpc_id" {
type = string
description = "The identifier of the VPC in which to create the resources."
}
variable "private_subnet_ids" {
type = list(string)
default = []
description = "A list of private subnets."
}
variable "public_subnet_ids" {
type = list(string)
default = []
description = "A list of public subnets."
}
variable "fargate_platform_version" {
type = string
default = "LATEST"
description = "The platform version on which to run your service."
}
variable "ecs_assign_public_ip" {
type = bool
default = false
description = "Whether to assign a public IP to the Fargate tasks."
}
variable "ecs_cluster_name" {
type = string
description = "Name of an existing ECS Cluster."
}
variable "ecs_deployment_controller_type" {
type = string
default = "ECS"
description = "Type of deployment controller. Valid values: CODE_DEPLOY, ECS, EXTERNAL. Default: ECS."
}
variable "ecs_container_name" {
type = string
description = "The container name value, already specified in the task definition, to be used for your service discovery service."
}
variable "ecs_container_port" {
type = number
default = 80
description = "The port value, already specified in the task definition, to be used for your service discovery service."
}
variable "ecs_deployment_maximum_percent" {
type = number
default = 200
description = "The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment."
}
variable "ecs_deployment_minimum_healthy_percent" {
type = number
default = 100
description = "The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment."
}
variable "ecs_desired_count" {
type = number
default = 2
description = "The number of instances of the task definition to place and keep running."
}
variable "ecs_health_check_grace_period_seconds" {
type = number
default = 0
description = "Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 2147483647."
}
variable "ecs_task_definition_arn" {
type = string
description = "The family and revision (family:revision) or full ARN of the task definition that you want to run in your service."
}
variable "lb_health_check_enabled" {
type = bool
default = true
description = "The number of consecutive health checks successes required before considering an unhealthy target healthy."
}
variable "lb_health_check_healthy_threshold" {
type = number
default = 3
description = "The number of consecutive health checks successes required before considering an unhealthy target healthy."
}
variable "lb_health_check_interval" {
type = number
default = 30
description = "The approximate amount of time, in seconds, between health checks of an individual target. Minimum value 5 seconds, Maximum value 300 seconds."
}
variable "lb_health_check_matcher" {
type = string
default = "200-299"
description = "The HTTP codes to use when checking for a successful response from a target. You can specify multiple values (for example, \"200,202\") or a range of values (for example, \"200-299\")."
}
variable "lb_health_check_path" {
type = string
default = "/"
description = "The destination for the health check request."
}
variable "lb_health_check_timeout" {
type = number
default = 5
description = "The amount of time, in seconds, during which no response means a failed health check. The range is 2 to 120 seconds, and the default is 5 seconds."
}
variable "lb_health_check_unhealthy_threshold" {
type = number
default = 3
description = "The number of consecutive health check failures required before considering the target unhealthy."
}
variable "lb_certificate_arn" {
type = string
default = ""
description = "The ARN of the default SSL server certificate."
}
variable "lb_extra_certificates_arn" {
type = list(string)
default = []
description = "List of extra SSL server certificates."
}
variable "lb_ssl_policy" {
type = string
default = "ELBSecurityPolicy-2016-08"
description = "The name of the SSL Policy for the listener."
}
variable "appautoscaling_high_cpu_threshold" {
type = number
default = 65
description = "The value against which the specified statistic is compared. This parameter is required for alarms based on static thresholds, but should not be used for alarms based on anomaly detection models."
}
variable "appautoscaling_low_cpu_threshold" {
type = number
default = 15
description = "The value against which the specified statistic is compared. This parameter is required for alarms based on static thresholds, but should not be used for alarms based on anomaly detection models."
}
variable "appautoscaling_max_capacity" {
type = number
default = 10
description = "The max capacity of the scalable target."
}
variable "appautoscaling_min_capacity" {
type = number
default = 2
description = "The min capacity of the scalable target."
}
variable "appautoscaling_scale_down_adjustment" {
type = number
default = -1
description = "The number of members by which to scale, when the adjustment bounds are breached. A positive value scales up. A negative value scales down."
}
variable "appautoscaling_scale_down_cooldown" {
type = number
default = 150
description = "The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start."
}
variable "appautoscaling_scale_up_adjustment" {
type = number
default = 2
description = "The number of members by which to scale, when the adjustment bounds are breached. A positive value scales up. A negative value scales down."
}
variable "appautoscaling_scale_up_cooldown" {
type = number
default = 60
description = "The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start."
}