Skip to content

Commit

Permalink
add create_before_destroy policy to batch job definition (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
morsecodist authored Mar 17, 2023
1 parent 47fc1fe commit 72d7d23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions terraform/modules/swipe-sfn-batch-job/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.4.3
v1.4.4

0 comments on commit 72d7d23

Please sign in to comment.