Update variables.tf

added worker pool variable
This commit is contained in:
maunope 2022-11-15 12:24:59 +01:00 committed by GitHub
parent f00c7da926
commit a661dad67c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -28,6 +28,11 @@ variable "bucket_name" {
type = string type = string
} }
variable "build_worker_pool" {
description = "Build worker pool, in projects/<PROJECT-ID>/locations/<REGION>/workerPools/<POOL_NAME> format"
type = string
}
variable "bundle_config" { variable "bundle_config" {
description = "Cloud function source folder and generated zip bundle paths. Output path defaults to '/tmp/bundle.zip' if null." description = "Cloud function source folder and generated zip bundle paths. Output path defaults to '/tmp/bundle.zip' if null."
type = object({ type = object({
@ -94,10 +99,6 @@ variable "prefix" {
description = "Optional prefix used for resource names." description = "Optional prefix used for resource names."
type = string type = string
default = null default = null
validation {
condition = var.prefix != ""
error_message = "Prefix cannot be empty, please use null instead."
}
} }
variable "project_id" { variable "project_id" {
@ -170,3 +171,4 @@ variable "v2" {
default = false default = false
} }