From 088e067d95dfa7d98c3d8b4afcfa1c6b6aeefbae Mon Sep 17 00:00:00 2001 From: ividito Date: Tue, 5 Mar 2024 15:34:23 -0400 Subject: [PATCH] fix: coalesce empty string to false --- infrastructure/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/main.tf b/infrastructure/main.tf index cceb974b..10d2d09c 100644 --- a/infrastructure/main.tf +++ b/infrastructure/main.tf @@ -244,7 +244,7 @@ resource "null_resource" "update_cloudfront" { always_run = "${timestamp()}" } - count = var.cloudfront_id ? 1 : 0 + count = coalesce(var.cloudfront_id, 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}\""