2019-09-11 05:39:33 -07:00
|
|
|
# Copyright 2019 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 "audit_viewers" {
|
|
|
|
description = "Audit project viewers, in IAM format."
|
2020-01-10 04:44:54 -08:00
|
|
|
type = list(string)
|
2019-09-11 05:39:33 -07:00
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "billing_account_id" {
|
|
|
|
description = "Billing account id used as default for new projects."
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "business_unit_1_name" {
|
|
|
|
description = "Business unit 1 short name."
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "business_unit_2_name" {
|
|
|
|
description = "Business unit 2 short name."
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "business_unit_3_name" {
|
|
|
|
description = "Business unit 3 short name."
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "environments" {
|
|
|
|
description = "Environment short names."
|
|
|
|
type = list(string)
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "generate_service_account_keys" {
|
|
|
|
description = "Generate and store service account keys in the state file."
|
2020-01-10 04:44:54 -08:00
|
|
|
type = bool
|
2019-09-11 05:39:33 -07:00
|
|
|
default = false
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "gcs_location" {
|
|
|
|
description = "GCS bucket location."
|
2020-01-10 04:44:54 -08:00
|
|
|
type = string
|
2019-09-11 05:39:33 -07:00
|
|
|
default = "EU"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "organization_id" {
|
|
|
|
description = "Organization id."
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "prefix" {
|
|
|
|
description = "Prefix used for resources that need unique names."
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "root_node" {
|
|
|
|
description = "Root node for the new hierarchy, either 'organizations/org_id' or 'folders/folder_id'."
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "shared_bindings_members" {
|
|
|
|
description = "List of comma-delimited IAM-format members for the additional shared project bindings."
|
|
|
|
# example: ["user:a@example.com,b@example.com", "user:c@example.com"]
|
2020-01-10 04:44:54 -08:00
|
|
|
type = list(string)
|
2019-09-11 05:39:33 -07:00
|
|
|
default = []
|
|
|
|
}
|
|
|
|
variable "shared_bindings_roles" {
|
|
|
|
description = "List of roles for additional shared project bindings."
|
|
|
|
# example: ["roles/storage.objectViewer", "roles/storage.admin"]
|
2020-01-10 04:44:54 -08:00
|
|
|
type = list(string)
|
2019-09-11 05:39:33 -07:00
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "terraform_owners" {
|
|
|
|
description = "Terraform project owners, in IAM format."
|
2020-01-10 04:44:54 -08:00
|
|
|
type = list(string)
|
2019-09-11 05:39:33 -07:00
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "project_services" {
|
|
|
|
description = "Service APIs enabled by default in new projects."
|
2020-01-10 04:44:54 -08:00
|
|
|
type = list(string)
|
2019-09-11 05:39:33 -07:00
|
|
|
default = [
|
|
|
|
"resourceviews.googleapis.com",
|
2019-11-04 11:50:08 -08:00
|
|
|
"stackdriver.googleapis.com",
|
2019-09-11 05:39:33 -07:00
|
|
|
]
|
|
|
|
}
|