diff --git a/modules/cloud-function/main.tf b/modules/cloud-function/main.tf index 708622343..b5a861b2a 100644 --- a/modules/cloud-function/main.tf +++ b/modules/cloud-function/main.tf @@ -267,7 +267,7 @@ resource "google_storage_bucket_object" "bundle" { data "archive_file" "bundle" { type = "zip" source_dir = var.bundle_config.source_dir - output_path = var.bundle_config.output_path != null ? var.bundle_config.output_path : "/tmp/bundle-${var.project_id}-${var.name}.zip" + output_path = coalesce(var.bundle_config.output_path, "/tmp/bundle-${var.project_id}-${var.name}.zip") output_file_mode = "0644" excludes = var.bundle_config.excludes }