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
*[ECS Fargate Task Definition with EFS](https://github.com/umotif-public/terraform-aws-ecs-fargate-task-definition/tree/master/examples/task-efs)
39
40
40
41
## Authors
41
42
@@ -59,7 +60,6 @@ No requirements.
59
60
| cloudwatch\_log\_group\_name | CloudWatch log group name required to enabled logDriver in container definitions for ecs task. |`string`|`""`| no |
60
61
| container\_name | Optional name for the container to be used instead of name\_prefix. |`string`|`""`| no |
61
62
| create\_repository\_credentials\_iam\_policy | Set to true if you are specifying `repository_credentials` variable, it will attach IAM policy with necessary permissions to task role. |`bool`|`false`| no |
62
-
| docker\_volume\_configuration | (Optional) Used to configure a docker volume option "docker\_volume\_configuration". Full set of options can be found at https://www.terraform.io/docs/providers/aws/r/ecs_task_definition.html|`list`|`[]`| no |
63
63
| enabled | Whether to create the resources. Set to `false` to prevent the module from creating any resources |`bool`|`true`| no |
64
64
| name\_prefix | A prefix used for naming resources. |`string`| n/a | yes |
65
65
| placement\_constraints | (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" |`list`|`[]`| no |
@@ -79,7 +79,10 @@ No requirements.
79
79
| task\_definition\_memory | The soft limit (in MiB) of memory to reserve for the task. |`number`|`512`| no |
80
80
| task\_health\_check | An optional healthcheck definition for the task |`object({ command = list(string), interval = number, timeout = number, retries = number, startPeriod = number })`|`null`| no |
81
81
| task\_host\_port | The port number on the container instance to reserve for your container. |`number`|`0`| no |
82
-
| volume | (Optional) A set of volume blocks that containers in your task may use. This is a list of maps, where each map should contain "name", "host\_path" and "docker\_volume\_configuration". Full set of options can be found at https://www.terraform.io/docs/providers/aws/r/ecs_task_definition.html|`list`|`[]`| no |
82
+
| task\_mount\_points | The mount points for data volumes in your container. Each object inside the list requires "sourceVolume", "containerPath" and "readOnly". For more information see https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html|`list(object({ sourceVolume = string, containerPath = string, readOnly = bool }))`|`null`| no |
83
+
| task\_start\_timeout | Time duration (in seconds) to wait before giving up on resolving dependencies for a container. If this parameter is not specified, the default value of 3 minutes is used (fargate). |`number`|`null`| no |
84
+
| task\_stop\_timeout | Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own. The max stop timeout value is 120 seconds and if the parameter is not specified, the default value of 30 seconds is used. |`number`|`null`| no |
85
+
| volume | (Optional) A set of volume blocks that containers in your task may use. This is a list of maps, where each map should contain "name", "host\_path", "docker\_volume\_configuration" and "efs\_volume\_configuration". Full set of options can be found at https://www.terraform.io/docs/providers/aws/r/ecs_task_definition.html|`list`|`[]`| no |
description="(Optional) A set of volume blocks that containers in your task may use. This is a list of maps, where each map should contain \"name\", \"host_path\" and \"docker_volume_configuration\". Full set of options can be found at https://www.terraform.io/docs/providers/aws/r/ecs_task_definition.html"
128
-
default=[]
129
-
}
130
-
131
-
variable"docker_volume_configuration" {
132
-
type=list
133
-
description="(Optional) Used to configure a docker volume option \"docker_volume_configuration\". Full set of options can be found at https://www.terraform.io/docs/providers/aws/r/ecs_task_definition.html"
127
+
description="(Optional) A set of volume blocks that containers in your task may use. This is a list of maps, where each map should contain \"name\", \"host_path\", \"docker_volume_configuration\" and \"efs_volume_configuration\". Full set of options can be found at https://www.terraform.io/docs/providers/aws/r/ecs_task_definition.html"
description="An optional healthcheck definition for the task"
140
134
default=null
141
135
}
136
+
137
+
variable"task_start_timeout" {
138
+
type=number
139
+
description="Time duration (in seconds) to wait before giving up on resolving dependencies for a container. If this parameter is not specified, the default value of 3 minutes is used (fargate)."
140
+
default=null
141
+
}
142
+
143
+
variable"task_stop_timeout" {
144
+
type=number
145
+
description="Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own. The max stop timeout value is 120 seconds and if the parameter is not specified, the default value of 30 seconds is used."
146
+
default=null
147
+
}
148
+
149
+
variable"task_mount_points" {
150
+
description="The mount points for data volumes in your container. Each object inside the list requires \"sourceVolume\", \"containerPath\" and \"readOnly\". For more information see https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html "
0 commit comments