Skip to content

Commit

Permalink
fix: update update_cloudfront resource count conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennifer Tran committed Jun 13, 2024
1 parent 20e8501 commit 4677039
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infrastructure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
}

0 comments on commit 4677039

Please sign in to comment.