2022-04-11 01:52:51 -07:00
|
|
|
/**
|
|
|
|
* Copyright 2022 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
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2022-11-19 03:38:37 -08:00
|
|
|
variable "enforce_security_policy" {
|
|
|
|
description = "Enforce security policy."
|
|
|
|
type = bool
|
|
|
|
default = true
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "prefix" {
|
2022-11-23 02:09:00 -08:00
|
|
|
description = "Prefix used for resource names."
|
2022-11-19 03:38:37 -08:00
|
|
|
type = string
|
2022-11-23 02:09:00 -08:00
|
|
|
validation {
|
|
|
|
condition = var.prefix != ""
|
|
|
|
error_message = "Prefix cannot be empty."
|
|
|
|
}
|
2022-11-19 03:38:37 -08:00
|
|
|
}
|
|
|
|
|
2022-04-11 01:52:51 -07:00
|
|
|
variable "project_create" {
|
|
|
|
description = "Parameters for the creation of the new project."
|
|
|
|
type = object({
|
|
|
|
billing_account_id = string
|
|
|
|
parent = string
|
|
|
|
})
|
|
|
|
default = null
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "project_id" {
|
|
|
|
description = "Identifier of the project."
|
|
|
|
type = string
|
|
|
|
}
|