From 72d7d23a99772867460d59731f6c27c591a3491a Mon Sep 17 00:00:00 2001 From: Todd Morse Date: Fri, 17 Mar 2023 16:50:40 -0400 Subject: [PATCH] add create_before_destroy policy to batch job definition (#108) --- terraform/modules/swipe-sfn-batch-job/main.tf | 7 +++++++ version | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/terraform/modules/swipe-sfn-batch-job/main.tf b/terraform/modules/swipe-sfn-batch-job/main.tf index 454d2bf2..182e8960 100644 --- a/terraform/modules/swipe-sfn-batch-job/main.tf +++ b/terraform/modules/swipe-sfn-batch-job/main.tf @@ -116,11 +116,18 @@ resource "aws_batch_job_definition" "swipe_main" { name = "${var.app_name}-main" type = "container" tags = var.tags + retry_strategy { attempts = var.batch_job_retry_attempts } + timeout { attempt_duration_seconds = var.batch_job_timeout_seconds } + container_properties = jsonencode(local.final_container_config) + + lifecycle { + create_before_destroy = true + } } diff --git a/version b/version index 92f76b42..44c34055 100644 --- a/version +++ b/version @@ -1 +1 @@ -v1.4.3 +v1.4.4 \ No newline at end of file