From 6df43c79d7da4443ac23f14dd01cd83b90262880 Mon Sep 17 00:00:00 2001 From: Jumana B Date: Thu, 21 Mar 2024 15:26:39 -0400 Subject: [PATCH] Add latest tag to blazer image (#1190) Co-authored-by: Jimmy Royer --- aws/database-tools/blazer.tf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aws/database-tools/blazer.tf b/aws/database-tools/blazer.tf index 1bad1a6a9..3a7a67490 100644 --- a/aws/database-tools/blazer.tf +++ b/aws/database-tools/blazer.tf @@ -1,3 +1,7 @@ +locals { + image_tag = var.env == "production" ? var.blazer_image_tag : "latest" +} + resource "aws_ecs_cluster" "blazer" { name = "blazer" @@ -37,7 +41,7 @@ resource "aws_ecs_task_definition" "blazer" { "name" : "blazer", "cpu" : 0, "essential" : true, - "image" : "${aws_ecr_repository.blazer.repository_url}:${var.blazer_image_tag}", + "image" : "${aws_ecr_repository.blazer.repository_url}:${local.image_tag}", "logConfiguration" : { "logDriver" : "awslogs", "options" : {