You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description="List of private subnet IDs for ECS instances and Internal ALB when enabled"
40
+
description="List of private subnet IDs for ECS instances and Internal ALB when enabled."
41
41
}
42
42
43
43
variable"public_subnet_ids" {
44
44
type=list(string)
45
-
description="List of public subnet IDs for ECS ALB"
45
+
description="List of public subnet IDs for ECS ALB."
46
46
}
47
47
48
48
variable"secure_subnet_ids" {
49
49
type=list(string)
50
-
description="List of secure subnet IDs for EFS"
50
+
description="List of secure subnet IDs for EFS."
51
51
}
52
52
53
53
variable"certificate_arn" {}
@@ -57,27 +57,27 @@ variable "certificate_arn" {}
57
57
variable"security_group_ids" {
58
58
type=list(string)
59
59
default=[]
60
-
description="Extra security groups for instances"
60
+
description="Extra security groups for instances."
61
61
}
62
62
63
63
variable"userdata" {
64
64
default=""
65
-
description="Extra commands to pass to userdata"
65
+
description="Extra commands to pass to userdata."
66
66
}
67
67
68
68
variable"alb" {
69
69
default=true
70
-
description="Whether to deploy an ALB or not with the cluster"
70
+
description="Whether to deploy an ALB or not with the cluster."
71
71
}
72
72
73
73
variable"alb_only" {
74
74
default=false
75
-
description="Whether to deploy only an alb and no cloudFront or not with the cluster"
75
+
description="Whether to deploy only an alb and no cloudFront or not with the cluster."
76
76
}
77
77
78
78
variable"alb_internal" {
79
79
default=false
80
-
description="Deploys a second internal ALB for private APIs"
80
+
description="Deploys a second internal ALB for private APIs."
81
81
}
82
82
83
83
variable"certificate_internal_arn" {
@@ -93,129 +93,139 @@ variable "alb_ssl_policy" {
93
93
94
94
variable"asg_min" {
95
95
default=1
96
-
description="Min number of instances for autoscaling group"
96
+
description="Min number of instances for autoscaling group."
97
97
}
98
98
99
99
variable"asg_max" {
100
100
default=4
101
-
description="Max number of instances for autoscaling group"
101
+
description="Max number of instances for autoscaling group."
102
102
}
103
103
104
-
variable"asg_memory_target" {
105
-
default=60
106
-
description="Target average memory percentage to track for autoscaling"
104
+
variable"asg_protect_from_scale_in" {
105
+
default=false
106
+
description="(Optional) Allows setting instance protection. The autoscaling group will not select instances with this setting for termination during scale in events."
107
+
}
108
+
109
+
variable"asg_target_capacity" {
110
+
default=70
111
+
description="Target average capacity percentage for the ECS capacity provider to track for autoscaling."
107
112
}
108
113
109
114
variable"alarm_sns_topics" {
110
115
default=[]
111
-
description="Alarm topics to create and alert on ECS instance metrics"
116
+
description="Alarm topics to create and alert on ECS instance metrics."
112
117
}
113
118
114
119
variable"alarm_asg_high_cpu_threshold" {
115
-
description="Max threshold average CPU percentage allowed in a 2 minutes interval (use 0 to disable this alarm)"
120
+
description="Max threshold average CPU percentage allowed in a 2 minutes interval (use 0 to disable this alarm)."
116
121
default=80
117
122
}
118
123
119
124
variable"alarm_ecs_high_memory_threshold" {
120
-
description="Max threshold average Memory percentage allowed in a 2 minutes interval (use 0 to disable this alarm)"
125
+
description="Max threshold average Memory percentage allowed in a 2 minutes interval (use 0 to disable this alarm)."
121
126
default=80
122
127
}
123
128
124
129
variable"alarm_ecs_high_cpu_threshold" {
125
-
description="Max threshold average CPU percentage allowed in a 2 minutes interval (use 0 to disable this alarm)"
130
+
description="Max threshold average CPU percentage allowed in a 2 minutes interval (use 0 to disable this alarm)."
126
131
default=80
127
132
}
128
133
129
134
variable"alarm_alb_latency_anomaly_threshold" {
130
-
description="ALB Latency anomaly detection width (use 0 to disable this alarm)"
135
+
description="ALB Latency anomaly detection width (use 0 to disable this alarm)."
131
136
default=2
132
137
}
133
138
134
139
variable"alarm_alb_500_errors_threshold" {
135
-
description="Max threshold of HTTP 500 errors allowed in a 5 minutes interval (use 0 to disable this alarm)"
140
+
description="Max threshold of HTTP 500 errors allowed in a 5 minutes interval (use 0 to disable this alarm)."
136
141
default=10
137
142
}
138
143
139
144
variable"alarm_alb_400_errors_threshold" {
140
-
description="Max threshold of HTTP 4000 errors allowed in a 5 minutes interval (use 0 to disable this alarm)"
145
+
description="Max threshold of HTTP 4000 errors allowed in a 5 minutes interval (use 0 to disable this alarm)."
141
146
default=10
142
147
}
143
148
144
149
variable"alarm_efs_credits_low_threshold" {
145
-
description="Alerts when EFS credits fell below this number in bytes - default 1000000000000 is 1TB of a maximum of 2.31T of credits (use 0 to disable this alarm)"
150
+
description="Alerts when EFS credits fell below this number in bytes - default 1000000000000 is 1TB of a maximum of 2.31T of credits (use 0 to disable this alarm)."
146
151
default=1000000000000
147
152
}
148
153
149
154
variable"target_group_arns" {
150
155
default=[]
151
156
type=list(string)
152
-
description="List of target groups for ASG to register"
157
+
description="List of target groups for ASG to register."
153
158
}
154
159
155
160
variable"autoscaling_health_check_grace_period" {
156
161
default=300
157
-
description="The length of time that Auto Scaling waits before checking an instance's health status. The grace period begins when an instance comes into service"
162
+
description="The length of time that Auto Scaling waits before checking an instance's health status. The grace period begins when an instance comes into service."
158
163
}
159
164
160
165
variable"autoscaling_default_cooldown" {
161
166
default=300
162
-
description="The amount of time, in seconds, after a scaling activity completes before another scaling activity can start"
167
+
description="The amount of time, in seconds, after a scaling activity completes before another scaling activity can start."
163
168
}
164
169
165
170
variable"instance_volume_size" {
166
-
description="Volume size for docker volume (in GB)"
167
-
default=30
171
+
description="Volume size for docker volume (in GB)."
172
+
default=22
173
+
}
174
+
175
+
variable"instance_volume_size_root" {
176
+
description="Volume size for root volume (in GB)."
177
+
default=16
168
178
}
169
179
170
180
variable"lb_access_logs_bucket" {
171
181
type=string
172
182
default=""
173
-
description="Bucket to store logs from lb access"
183
+
description="Bucket to store logs from lb access."
174
184
}
175
185
176
186
variable"lb_access_logs_prefix" {
177
187
type=string
178
188
default=""
179
-
description="Bucket prefix to store lb access logs"
189
+
description="Bucket prefix to store lb access logs."
180
190
}
181
191
182
192
variable"enable_schedule" {
183
193
default=false
184
-
description="Enables schedule to shut down and start up instances outside business hours"
194
+
description="Enables schedule to shut down and start up instances outside business hours."
185
195
}
186
196
variable"schedule_cron_start" {
187
197
type=string
188
198
default=""
189
-
description="Cron expression to define when to trigger a start of the auto-scaling group. E.g. '0 20 * * *' to start at 8pm GMT time"
199
+
description="Cron expression to define when to trigger a start of the auto-scaling group. E.g. '0 20 * * *' to start at 8pm GMT time."
190
200
}
191
201
192
202
variable"schedule_cron_stop" {
193
203
type=string
194
204
default=""
195
-
description="Cron expression to define when to trigger a stop of the auto-scaling group. E.g. '0 10 * * *' to stop at 10am GMT time"
205
+
description="Cron expression to define when to trigger a stop of the auto-scaling group. E.g. '0 10 * * *' to stop at 10am GMT time."
196
206
}
197
207
198
208
variable"backup" {
199
209
type=string
200
210
default="true"
201
-
description="Assing a backup tag to efs resource - Backup will be performed by AWS Backup"
211
+
description="Assing a backup tag to efs resource - Backup will be performed by AWS Backup."
202
212
}
203
213
204
214
variable"throughput_mode" {
205
215
type=string
206
216
default="bursting"
207
-
description="Throughput mode for the file system. Defaults to bursting. Valid values: bursting, provisioned"
217
+
description="Throughput mode for the file system. Defaults to bursting. Valid values: bursting, provisioned."
208
218
}
209
219
210
220
variable"provisioned_throughput_in_mibps" {
211
221
default=0
212
-
description="The throughput, measured in MiB/s, that you want to provision for the file system"
222
+
description="The throughput, measured in MiB/s, that you want to provision for the file system."
213
223
}
214
224
215
225
variable"alarm_prefix" {
216
226
type=string
217
227
description="String prefix for cloudwatch alarms. (Optional)"
0 commit comments