2021-01-11 02:57:57 -08:00
|
|
|
/**
|
2022-01-01 06:52:31 -08:00
|
|
|
* Copyright 2022 Google LLC
|
2021-01-11 02:57:57 -08:00
|
|
|
*
|
|
|
|
* 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 "host_project" {
|
2022-01-31 01:45:34 -08:00
|
|
|
description = "Host project name."
|
2021-01-11 02:57:57 -08:00
|
|
|
default = "host"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "service_projects" {
|
2022-01-31 01:45:34 -08:00
|
|
|
description = "List of service project names."
|
2021-01-11 02:57:57 -08:00
|
|
|
type = list(any)
|
|
|
|
default = [
|
|
|
|
"app-team1",
|
|
|
|
"app-team2",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "region" {
|
2022-01-31 01:45:34 -08:00
|
|
|
description = "Region in which to create the subnet."
|
2021-01-11 02:57:57 -08:00
|
|
|
default = "europe-west1"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "project_services" {
|
|
|
|
description = "Service APIs enabled by default in new projects."
|
|
|
|
default = [
|
|
|
|
"compute.googleapis.com",
|
|
|
|
"dns.googleapis.com",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "organization_id" {
|
2022-01-31 01:45:34 -08:00
|
|
|
description = "The organization ID."
|
2021-01-11 02:57:57 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "billing_account" {
|
2022-01-31 01:45:34 -08:00
|
|
|
description = "The ID of the billing account to associate this project with."
|
2021-01-11 02:57:57 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "prefix" {
|
2022-01-31 01:45:34 -08:00
|
|
|
description = "Customer name to use as prefix for resources' naming."
|
2021-01-11 02:57:57 -08:00
|
|
|
default = "test-dns"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "dns_domain" {
|
2022-01-31 01:45:34 -08:00
|
|
|
description = "DNS domain under which each application team DNS domain will be created."
|
2021-01-11 02:57:57 -08:00
|
|
|
default = "prod.internal"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "teams" {
|
2022-01-31 01:45:34 -08:00
|
|
|
description = "List of teams that require their own Cloud DNS instance."
|
2021-01-11 02:57:57 -08:00
|
|
|
default = ["appteam1", "appteam2"]
|
2022-01-01 06:52:31 -08:00
|
|
|
}
|