2022-02-02 06:21:10 -08: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
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2023-08-20 00:44:20 -07:00
|
|
|
variable "migration_admin" {
|
|
|
|
description = "User or group who can create a new M4CE sources and perform all other migration operations, in IAM format (`group:foo@example.com`)."
|
|
|
|
type = string
|
2022-02-02 06:21:10 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "migration_target_projects" {
|
2022-11-24 09:56:01 -08:00
|
|
|
description = "List of target projects for m4ce workload migrations."
|
2022-02-02 06:21:10 -08:00
|
|
|
type = list(string)
|
|
|
|
}
|
|
|
|
|
2023-08-20 00:44:20 -07:00
|
|
|
variable "migration_viewer" {
|
|
|
|
description = "User or group authorized to retrieve information about M4CE in the Google Cloud Console, in IAM format (`group:foo@example.com`)."
|
|
|
|
type = string
|
|
|
|
default = null
|
2022-02-02 06:21:10 -08:00
|
|
|
}
|
2023-08-20 00:44:20 -07:00
|
|
|
|
2022-02-02 06:21:10 -08:00
|
|
|
variable "project_create" {
|
2022-11-24 09:56:01 -08:00
|
|
|
description = "Parameters for the creation of the new project to host the M4CE backend."
|
2022-02-02 06:21:10 -08:00
|
|
|
type = object({
|
|
|
|
billing_account_id = string
|
|
|
|
parent = string
|
|
|
|
})
|
|
|
|
default = null
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "project_name" {
|
2022-11-24 09:56:01 -08:00
|
|
|
description = "Name of an existing project or of the new project assigned as M4CE host project."
|
2022-02-02 06:21:10 -08:00
|
|
|
type = string
|
|
|
|
default = "m4ce-host-project-000"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "sharedvpc_host_projects" {
|
2022-11-24 09:56:01 -08:00
|
|
|
description = "List of host projects that share a VPC with the selected target projects."
|
2022-02-02 06:21:10 -08:00
|
|
|
type = list(string)
|
|
|
|
}
|