48 lines
1.2 KiB
HCL
48 lines
1.2 KiB
HCL
# 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.
|
|
|
|
output "gke_clusters" {
|
|
description = "GKE clusters information."
|
|
value = (
|
|
var.cluster_create
|
|
? { cluster-1 = module.cluster-1.0.endpoint }
|
|
: {}
|
|
)
|
|
}
|
|
|
|
output "projects" {
|
|
description = "Project ids."
|
|
value = {
|
|
host = module.project-host.project_id
|
|
service-gce = module.project-svc-gce.project_id
|
|
service-gke = module.project-svc-gke.project_id
|
|
}
|
|
}
|
|
|
|
output "vpc" {
|
|
description = "Shared VPC."
|
|
value = {
|
|
name = module.vpc-shared.name
|
|
subnets = module.vpc-shared.subnet_ips
|
|
}
|
|
}
|
|
|
|
output "vms" {
|
|
description = "GCE VMs."
|
|
value = {
|
|
(module.vm-bastion.instance.name) = module.vm-bastion.internal_ip
|
|
}
|
|
}
|
|
|