diff --git a/modules/cloud-function/variables.tf b/modules/cloud-function/variables.tf index 8f3eeb36..7e6404d0 100644 --- a/modules/cloud-function/variables.tf +++ b/modules/cloud-function/variables.tf @@ -28,6 +28,11 @@ variable "bucket_name" { type = string } +variable "build_worker_pool" { + description = "Build worker pool, in projects//locations//workerPools/ format" + type = string +} + variable "bundle_config" { description = "Cloud function source folder and generated zip bundle paths. Output path defaults to '/tmp/bundle.zip' if null." type = object({ @@ -94,10 +99,6 @@ variable "prefix" { description = "Optional prefix used for resource names." type = string default = null - validation { - condition = var.prefix != "" - error_message = "Prefix cannot be empty, please use null instead." - } } variable "project_id" { @@ -170,3 +171,4 @@ variable "v2" { default = false } +