Skip to content

Commit 20e6261

Browse files
committed
Adding start timeout variable
1 parent 5cf3515 commit 20e6261

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Check versions for this module on:
1717

1818
module "td" {
1919
source = "cn-terraform/ecs-fargate-task-definition/aws"
20-
version = "1.0.3"
20+
version = "1.0.4"
2121
name_preffix = var.name_preffix
2222
profile = var.profile
2323
region = var.region
@@ -46,6 +46,7 @@ Check versions for this module on:
4646
* readonly_root_filesystem: (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.
4747
* repository_credentials: (Optional) Container repository credentials; required when using a private repo. This map currently supports a single key; "credentialsParameter", which should be the ARN of a Secrets Manager's secret holding the credentials.
4848
* secrets: (Optional) The secrets to pass to the container. This is a list of maps.
49+
* start_timeout: (Optional) Time duration (in seconds) to wait before giving up on resolving dependencies for a container.
4950
* stop_timeout: (Optional) Timeout in seconds between sending SIGTERM and SIGKILL to container.
5051
* ulimits: (Optional) Container ulimit settings. This is a list of maps, where each map should contain "name", "hardLimit" and "softLimit".
5152
* user: (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.

main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ resource "aws_iam_role_policy_attachment" "ecs_task_execution_role_policy_attach
3636
# Container Definition
3737
module "container_definition" {
3838
source = "cloudposse/ecs-container-definition/aws"
39-
version = "0.15.0"
39+
version = "0.21.0"
4040

4141
container_name = var.container_name
4242
container_image = var.container_image
@@ -62,6 +62,7 @@ module "container_definition" {
6262
links = var.links
6363
user = var.user
6464
container_depends_on = var.container_depends_on
65+
start_timeout = var.start_timeout
6566
stop_timeout = var.stop_timeout
6667
}
6768

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ variable "secrets" {
140140
default = []
141141
}
142142

143+
variable "start_timeout" {
144+
description = "(Optional) Time duration (in seconds) to wait before giving up on resolving dependencies for a container."
145+
default = 30
146+
}
147+
143148
variable "stop_timeout" {
144149
description = "(Optional) Timeout in seconds between sending SIGTERM and SIGKILL to container"
145150
default = 30

0 commit comments

Comments
 (0)