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 +}