2022-01-01 06:52:31 -08:00
|
|
|
# Copyright 2022 Google LLC
|
2021-07-26 00:22:40 -07: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
|
|
|
|
#
|
|
|
|
# https://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 "billing_account_id" {
|
|
|
|
description = "Billing account id used as default for new projects."
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "ip_ranges" {
|
|
|
|
description = "Subnet IP CIDR ranges."
|
|
|
|
type = map(string)
|
|
|
|
default = {
|
|
|
|
prod = "10.0.16.0/24"
|
|
|
|
dev = "10.0.32.0/24"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-08 09:26:04 -07:00
|
|
|
variable "prefix" {
|
|
|
|
description = "Prefix used for resources that need unique names."
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
2021-07-26 00:22:40 -07:00
|
|
|
variable "project_services" {
|
|
|
|
description = "Service APIs enabled by default in new projects."
|
|
|
|
type = list(string)
|
|
|
|
default = [
|
|
|
|
"container.googleapis.com",
|
|
|
|
"dns.googleapis.com",
|
|
|
|
"stackdriver.googleapis.com",
|
|
|
|
]
|
|
|
|
}
|
2021-10-08 09:26:04 -07:00
|
|
|
|
|
|
|
variable "region" {
|
|
|
|
description = "Region used."
|
|
|
|
type = string
|
|
|
|
default = "europe-west1"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "root_node" {
|
|
|
|
description = "Hierarchy node where projects will be created, 'organizations/org_id' or 'folders/folder_id'."
|
|
|
|
type = string
|
|
|
|
}
|