foundation-extension/4-projects/business_unit_1/development/variables.tf (83 lines of code) (raw):
/**
* Copyright 2021 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.
*/
variable "terraform_service_account" {
description = "Service account email of the account to impersonate to run Terraform"
type = string
}
variable "org_id" {
description = "The organization id for the associated services"
type = string
}
variable "billing_account" {
description = "The ID of the billing account to associated this project with"
type = string
}
variable "parent_folder" {
description = "Optional - if using a folder for testing."
type = string
default = ""
}
variable "alert_spent_percents" {
description = "A list of percentages of the budget to alert on when threshold is exceeded"
type = list(number)
default = [0.5, 0.75, 0.9, 0.95]
}
variable "alert_pubsub_topic" {
description = "The name of the Cloud Pub/Sub topic where budget related messages will be published, in the form of `projects/{project_id}/topics/{topic_id}`"
type = string
default = null
}
variable "budget_amount" {
description = "The amount to use as the budget"
type = number
default = 1000
}
variable "project_prefix" {
description = "Name prefix to use for projects created."
type = string
default = "prj"
}
variable "folder_prefix" {
description = "Name prefix to use for folders created."
type = string
default = "fldr"
}
variable "enable_hub_and_spoke" {
description = "Enable Hub-and-Spoke architecture."
type = bool
default = false
}
variable "app_infra_pipeline_cloudbuild_sa" {
description = "Cloud Build SA used for deploying infrastructure"
type = string
}
variable "app_cicd_project_id" {
description = "Project ID for app cicd"
type = string
}
variable "shared_vpc_host_project_id" {
description = "Host Project ID for the Shared VPC and Subnets"
type = string
}
variable "shared_vpc_network_name" {
description = "Shared VPC Name"
type = string
}
variable "environment_code" {
description = "Short form of current running environment (e.g. d for development)"
type = string
default = "d"
}