From ee16d51dfcfa0cab4ec92dfbdcdb6daad27b0945 Mon Sep 17 00:00:00 2001 From: Ryan Lim Date: Fri, 11 Aug 2023 17:41:28 -0700 Subject: [PATCH] add tertiary --- main.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.tf b/main.tf index f9d2877b..b0a6289a 100644 --- a/main.tf +++ b/main.tf @@ -44,12 +44,13 @@ module "batch_queue" { locals { version = file("${path.module}/version") + docker_image_path = var.app_name == "swipe-test" ? "swipe" : "ghcr.io/chanzuckerberg/swipe" } module "sfn" { source = "./terraform/modules/swipe-sfn" app_name = var.app_name - batch_job_docker_image = "swipe:${chomp(local.version)}" + batch_job_docker_image = "${local.docker_image_path}:${chomp(local.version)}" batch_spot_job_queue_arn = module.batch_queue.batch_spot_job_queue_arn batch_on_demand_job_queue_arn = module.batch_queue.batch_on_demand_job_queue_arn miniwdl_dir = var.miniwdl_dir