cloud-foundation-fabric/blueprints/networking/psc-glb-and-armor/variables.tf

52 lines
1.5 KiB
Terraform
Raw Normal View History

2023-02-24 08:14:54 -08:00
/**
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
2023-02-24 09:49:51 -08:00
variable "consumer_project_id" {
description = "The consumer project, in which the GCLB and Cloud Armor should be created."
type = string
}
2023-02-24 09:02:50 -08:00
variable "prefix" {
description = "Prefix used for resource names."
type = string
validation {
condition = var.prefix != ""
error_message = "Prefix cannot be empty."
}
}
2023-02-24 09:49:51 -08:00
variable "producer_project_id" {
2023-02-24 09:52:56 -08:00
description = "The producer project, in which the ILB, PSC Service Attachment and Cloud Run service should be created."
2023-02-24 09:49:51 -08:00
type = string
}
2023-02-24 09:02:50 -08:00
variable "project_create" {
description = "Create project instead of using an existing one."
type = bool
default = false
}
2023-02-24 08:14:54 -08:00
variable "region" {
2023-02-24 08:39:39 -08:00
description = "The GCP region in which the resources should be deployed."
2023-02-24 09:27:49 -08:00
type = string
2023-02-24 09:29:50 -08:00
default = "europe-west1"
2023-02-24 09:02:50 -08:00
}
variable "zone" {
description = "The GCP zone for the VM."
2023-02-24 09:27:49 -08:00
type = string
2023-02-24 09:29:50 -08:00
default = "europe-west1-b"
2023-02-24 08:14:54 -08:00
}