54 lines
1.5 KiB
Terraform
54 lines
1.5 KiB
Terraform
|
# 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
|
||
|
#
|
||
|
# 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 "prefix" {
|
||
|
description = "Prefix used for resources that need unique names."
|
||
|
type = string
|
||
|
}
|
||
|
|
||
|
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
|
||
|
}
|
||
|
|
||
|
variable "ip_ranges" {
|
||
|
description = "Subnet IP CIDR ranges."
|
||
|
type = map(string)
|
||
|
default = {
|
||
|
prod = "10.0.16.0/24"
|
||
|
dev = "10.0.32.0/24"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
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",
|
||
|
]
|
||
|
}
|