2019-09-09 02:58:27 -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.
|
|
|
|
|
2019-09-06 20:44:24 -07:00
|
|
|
variable "audit_viewers" {
|
|
|
|
description = "Audit project viewers, in IAM format."
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "billing_account_id" {
|
|
|
|
description = "Billing account id used as default for new projects."
|
|
|
|
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."
|
|
|
|
default = false
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "gcs_location" {
|
|
|
|
description = "GCS bucket location."
|
|
|
|
default = "EU"
|
|
|
|
}
|
|
|
|
|
2019-09-19 03:16:45 -07:00
|
|
|
variable "grant_xpn_org_roles" {
|
|
|
|
description = "Grant roles needed for Shared VPC creation to service accounts at the organization level."
|
|
|
|
default = false
|
2019-09-06 20:44:24 -07:00
|
|
|
}
|
|
|
|
|
2019-09-19 03:16:45 -07:00
|
|
|
variable "grant_xpn_folder_roles" {
|
|
|
|
description = "Grant roles needed for Shared VPC creation to service accounts at the environment folder level."
|
|
|
|
default = true
|
|
|
|
}
|
2019-09-06 20:44:24 -07:00
|
|
|
|
|
|
|
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"]
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
variable "shared_bindings_roles" {
|
|
|
|
description = "List of roles for additional shared project bindings."
|
|
|
|
# example: ["roles/storage.objectViewer", "roles/storage.admin"]
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "terraform_owners" {
|
|
|
|
description = "Terraform project owners, in IAM format."
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "project_services" {
|
|
|
|
description = "Service APIs enabled by default in new projects."
|
|
|
|
default = [
|
|
|
|
"resourceviews.googleapis.com",
|
2019-11-04 11:44:15 -08:00
|
|
|
"stackdriver.googleapis.com",
|
2019-09-06 20:44:24 -07:00
|
|
|
]
|
|
|
|
}
|