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="(Optional) The number of cpu units to reserve for the container. This is optional for tasks using Fargate launch type and the total amount of container_cpu of all containers in a task will need to be lower than the task-level cpu value"
28
-
default=1024#1 vCPU
23
+
description="(Optional) The amount of memory (in MiB) to allow the container to use. This is a hard limit, if the container attempts to exceed the container_memory, the container is killed. This field is optional for Fargate launch type and the total amount of container_memory of all containers in a task will need to be lower than the task memory value"
24
+
default=8192#8 GB
29
25
}
30
26
31
-
variable"container_depends_on" {
32
-
description="(Optional) The dependencies defined for container startup and shutdown. A container can contain multiple dependencies. When a dependency is defined for container startup, for container shutdown it is reversed"
description="(Optional) The amount of memory (in MiB) to reserve for the container. If container needs to exceed this threshold, it can do so up to the set container_memory hard limit"
30
+
default=2048# 2 GB
31
+
}
32
+
33
+
variable"port_mappings" {
34
+
description="The port mappings to configure for the container. This is a list of maps. Each map should contain \"containerPort\", \"hostPort\", and \"protocol\", where \"protocol\" is one of \"tcp\" or \"udp\". If using containers in a task with the awsvpc or host network mode, the hostPort can either be left blank or set to the same value as the containerPort"
description="(Optional) A map containing command (string), timeout, interval (duration in seconds), retries (1-10, number of times to retry before marking container unhealthy), and startPeriod (0-300, optional grace period to wait, in seconds, before failed healthchecks count toward retries)"
description="(Optional) The amount of memory (in MiB) to allow the container to use. This is a hard limit, if the container attempts to exceed the container_memory, the container is killed. This field is optional for Fargate launch type and the total amount of container_memory of all containers in a task will need to be lower than the task memory value"
43
-
default=8192#8 GB
64
+
description="(Optional) The number of cpu units to reserve for the container. This is optional for tasks using Fargate launch type and the total amount of container_cpu of all containers in a task will need to be lower than the task-level cpu value"
description="(Optional) The amount of memory (in MiB) to reserve for the container. If container needs to exceed this threshold, it can do so up to the set container_memory hard limit"
49
-
default=2048# 2 GB
68
+
variable"essential" {
69
+
description="(Optional) Determines whether all other containers in a task are stopped, if this container fails or stops for any reason. Due to how Terraform type casts booleans in json it is required to double quote this value"
70
+
type=bool
71
+
default=true
50
72
}
51
73
52
-
variable"dns_servers" {
74
+
variable"entrypoint" {
75
+
description="(Optional) The entry point that is passed to the container"
53
76
type=list(string)
54
-
description="(Optional) Container DNS servers. This is a list of strings specifying the IP addresses of the DNS servers"
55
77
default=null
56
78
}
57
79
58
-
variable"docker_labels" {
59
-
description="(Optional) The configuration options to send to the `docker_labels`"
60
-
type=map(string)
80
+
variable"command" {
81
+
description="(Optional) The command that is passed to the container"
82
+
type=list(string)
61
83
default=null
62
84
}
63
85
64
-
variable"entrypoint" {
65
-
description="(Optional) The entry point that is passed to the container"
66
-
type=list(string)
86
+
variable"working_directory" {
87
+
description="(Optional) The working directory to run commands inside the container"
88
+
type=string
67
89
default=null
68
90
}
69
91
@@ -76,39 +98,19 @@ variable "environment" {
76
98
default=[]
77
99
}
78
100
79
-
variable"essential" {
80
-
description="(Optional) Determines whether all other containers in a task are stopped, if this container fails or stops for any reason. Due to how Terraform type casts booleans in json it is required to double quote this value"
description="(Optional) The FireLens configuration for the container. This is used to specify and configure a log router for container logs. For more details, see https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_FirelensConfiguration.html"
description="(Optional) A map containing command (string), timeout, interval (duration in seconds), retries (1-10, number of times to retry before marking container unhealthy), and startPeriod (0-300, optional grace period to wait, in seconds, before failed healthchecks count toward retries)"
98
-
type=object({
99
-
command =list(string)
100
-
retries =number
101
-
timeout =number
102
-
interval =number
103
-
startPeriod =number
104
-
})
101
+
variable"secrets" {
102
+
description="(Optional) The secrets to pass to the container. This is a list of maps"
103
+
type=list(object({
104
+
name =string
105
+
valueFrom =string
106
+
}))
105
107
default=null
106
108
}
107
109
108
-
variable"links" {
109
-
description="(Optional) List of container names this container can communicate with without port mappings"
110
-
type=list(string)
111
-
default=null
110
+
variable"readonly_root_filesystem" {
111
+
description="(Optional) Determines whether a container is given read-only access to its root filesystem. Due to how Terraform type casts booleans in json it is required to double quote this value"
description="(Optional) The FireLens configuration for the container. This is used to specify and configure a log router for container logs. For more details, see https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_FirelensConfiguration.html"
160
+
type=object({
161
+
type =string
162
+
options =map(string)
163
+
})
164
+
default=null
165
+
}
166
+
155
167
variable"mount_points" {
156
168
description="(Optional) Container mount points. This is a list of maps, where each map should contain a `containerPath` and `sourceVolume`"
157
169
type=list(object({
@@ -161,32 +173,20 @@ variable "mount_points" {
161
173
default=[]
162
174
}
163
175
164
-
variable"port_mappings" {
165
-
description="The port mappings to configure for the container. This is a list of maps. Each map should contain \"containerPort\", \"hostPort\", and \"protocol\", where \"protocol\" is one of \"tcp\" or \"udp\". If using containers in a task with the awsvpc or host network mode, the hostPort can either be left blank or set to the same value as the containerPort"
166
-
type=list(object({
167
-
containerPort =number
168
-
hostPort =number
169
-
protocol =string
170
-
}))
171
-
default=[
172
-
{
173
-
containerPort =80
174
-
hostPort =80
175
-
protocol ="tcp"
176
-
}
177
-
]
178
-
}
179
-
180
-
variable"task_role_arn" {
181
-
description="(Optional) The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services. If not specified, `aws_iam_role.ecs_task_execution_role.arn` is used"
182
-
type=string
176
+
variable"dns_servers" {
177
+
type=list(string)
178
+
description="(Optional) Container DNS servers. This is a list of strings specifying the IP addresses of the DNS servers"
183
179
default=null
184
180
}
185
181
186
-
variable"readonly_root_filesystem" {
187
-
description="(Optional) Determines whether a container is given read-only access to its root filesystem. Due to how Terraform type casts booleans in json it is required to double quote this value"
188
-
type=bool
189
-
default=false
182
+
variable"ulimits" {
183
+
description="(Optional) Container ulimit settings. This is a list of maps, where each map should contain \"name\", \"hardLimit\" and \"softLimit\""
description="(Optional) The secrets to pass to the container. This is a list of maps"
198
+
variable"volumes_from" {
199
+
description="(Optional) A list of VolumesFrom maps which contain \"sourceContainer\" (name of the container that has the volumes to mount) and \"readOnly\" (whether the container can write to the volume)"
200
200
type=list(object({
201
-
name =string
202
-
valueFrom =string
201
+
sourceContainer=string
202
+
readOnly =bool
203
203
}))
204
204
default=null
205
205
}
206
206
207
-
variable"start_timeout" {
208
-
description="(Optional) Time duration (in seconds) to wait before giving up on resolving dependencies for a container."
209
-
default=30
210
-
}
211
-
212
-
variable"system_controls" {
213
-
description="(Optional) A list of namespaced kernel parameters to set in the container, mapping to the --sysctl option to docker run. This is a list of maps: { namespace = \"\", value = \"\"}"
214
-
type=list(map(string))
207
+
variable"links" {
208
+
description="(Optional) List of container names this container can communicate with without port mappings"
209
+
type=list(string)
215
210
default=null
216
211
}
217
212
218
-
variable"stop_timeout" {
219
-
description="(Optional) Timeout in seconds between sending SIGTERM and SIGKILL to container"
220
-
type=number
221
-
default=30
213
+
variable"user" {
214
+
description="(Optional) The user to run as inside the container. Can be any of these formats: user, user:group, uid, uid:gid, user:gid, uid:group"
215
+
type=string
216
+
default=null
222
217
}
223
218
224
-
variable"ulimits" {
225
-
description="(Optional) Container ulimit settings. This is a list of maps, where each map should contain \"name\", \"hardLimit\" and \"softLimit\""
219
+
variable"container_depends_on" {
220
+
description="(Optional) The dependencies defined for container startup and shutdown. A container can contain multiple dependencies. When a dependency is defined for container startup, for container shutdown it is reversed"
226
221
type=list(object({
227
-
name =string
228
-
hardLimit =number
229
-
softLimit =number
222
+
containerName =string
223
+
condition =string
230
224
}))
231
225
default=null
232
226
}
233
227
234
-
variable"user" {
235
-
description="(Optional) The user to run as inside the container. Can be any of these formats: user, user:group, uid, uid:gid, user:gid, uid:group"
236
-
type=string
228
+
variable"docker_labels" {
229
+
description="(Optional) The configuration options to send to the `docker_labels`"
230
+
type=map(string)
237
231
default=null
238
232
}
239
233
240
-
variable"volumes_from" {
241
-
description="(Optional) A list of VolumesFrom maps which contain \"sourceContainer\" (name of the container that has the volumes to mount) and \"readOnly\" (whether the container can write to the volume)"
242
-
type=list(object({
243
-
sourceContainer =string
244
-
readOnly =bool
245
-
}))
246
-
default=null
234
+
variable"start_timeout" {
235
+
description="(Optional) Time duration (in seconds) to wait before giving up on resolving dependencies for a container."
236
+
default=30
247
237
}
248
238
249
-
variable"working_directory" {
250
-
description="(Optional) The working directory to run commands inside the container"
251
-
type=string
239
+
variable"stop_timeout" {
240
+
description="(Optional) Timeout in seconds between sending SIGTERM and SIGKILL to container"
241
+
type=number
242
+
default=30
243
+
}
244
+
245
+
variable"system_controls" {
246
+
description="(Optional) A list of namespaced kernel parameters to set in the container, mapping to the --sysctl option to docker run. This is a list of maps: { namespace = \"\", value = \"\"}"
description="(Optional) The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services. If not specified, `aws_iam_role.ecs_task_execution_role.arn` is used"
256
+
type=string
257
+
default=null
258
+
}
259
+
258
260
variable"placement_constraints" {
259
261
description="(Optional) A set of placement constraints rules that are taken into consideration during task placement. Maximum number of placement_constraints is 10. This is a list of maps, where each map should contain \"type\" and \"expression\""
0 commit comments