From e0be368485a7ba1a8f92cfea6890769b1abe514b Mon Sep 17 00:00:00 2001 From: Jumana B Date: Tue, 2 Jan 2024 14:09:10 -0500 Subject: [PATCH] Change the image tag to use latest (#1083) * Change the image tag to use latest * fix tag --- aws/system_status/lambda.tf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aws/system_status/lambda.tf b/aws/system_status/lambda.tf index 4c6afbb2d..c57704c06 100644 --- a/aws/system_status/lambda.tf +++ b/aws/system_status/lambda.tf @@ -1,10 +1,14 @@ +locals { + image_tag = var.env == "production" ? var.system_status_docker_tag : "latest" +} + module "system_status" { source = "github.com/cds-snc/terraform-modules//lambda?ref=v0.0.49" name = "system_status" billing_tag_value = var.billing_tag_value ecr_arn = var.system_status_ecr_arn enable_lambda_insights = true - image_uri = "${var.system_status_ecr_repository_url}:${var.system_status_docker_tag}" + image_uri = "${var.system_status_ecr_repository_url}:${local.image_tag}" timeout = 60 memory = 1024 policies = [data.aws_iam_policy_document.system_status_s3_permissions.json]