From 4677039d21a9f8af94f05b5f796dc80daaee3afb Mon Sep 17 00:00:00 2001 From: Jennifer Tran Date: Thu, 13 Jun 2024 16:41:15 -0700 Subject: [PATCH] fix: update update_cloudfront resource count conditional --- infrastructure/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/main.tf b/infrastructure/main.tf index ac2bc0cd..c68bf59e 100644 --- a/infrastructure/main.tf +++ b/infrastructure/main.tf @@ -272,11 +272,11 @@ resource "null_resource" "update_cloudfront" { always_run = "${timestamp()}" } - count = coalesce(var.cloudfront_id, false) ? 1 : 0 + count = coalesce(var.cloudfront_id, false) != false ? 1 : 0 provisioner "local-exec" { command = "${path.module}/cf_update.sh ${var.cloudfront_id} workflows_api_origin \"${aws_apigatewayv2_api.workflows_http_api.api_endpoint}\"" } depends_on = [aws_apigatewayv2_api.workflows_http_api] -} \ No newline at end of file +}