From 3297944bb3706f1e3b23afac4c6546d5eff70ef7 Mon Sep 17 00:00:00 2001 From: Grzegorz Faryna Date: Mon, 4 Dec 2023 10:06:41 +0100 Subject: [PATCH] Allow to override deployment timeout. (#11) * Revert "revert last changes" This reverts commit bab8fd8970004c433a5c4fa0ccb7430b2867a694. * Revert "Update main.tf" This reverts commit b992e9b2496f9d64a77169276c42d7c3db6a0ebd. * Allow to override deployment timeout. --- main.tf | 3 ++- variables.tf | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 2441036..b2d4c0f 100644 --- a/main.tf +++ b/main.tf @@ -5,12 +5,13 @@ locals { module "ecs_update_monitor" { source = "mergermarket/ecs-update-monitor/acuris" - version = "2.2.1" + version = "2.3.2" cluster = var.ecs_cluster service = module.service.name taskdef = module.taskdef.arn is_test = var.is_test + timeout = var.deployment_timeout } module "service" { diff --git a/variables.tf b/variables.tf index 5b5f588..410fe62 100644 --- a/variables.tf +++ b/variables.tf @@ -233,4 +233,10 @@ variable "health_check_grace_period_seconds" { description = "Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 2147483647. Default 0." type = string default = "0" -} \ No newline at end of file +} + +variable "deployment_timeout" { + description = "Timeout to wait for the deployment to be finished [seconds]." + type = number + default = 600 +}