modules/gcve-service-networking/outputs.tf (75 lines of code) (raw):

/** * 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. */ output "network_name" { value = var.create_network ? google_compute_network.network[0].name : var.network_name description = "The name of the VPC being created" } output "network_id" { value = var.create_network ? google_compute_network.network[0].id : data.google_compute_network.network[0].id description = "The ID of the VPC being created" } output "network_self_link" { value = var.create_network ? google_compute_network.network[0].self_link : data.google_compute_network.network[0].self_link description = "The URI of the VPC being created" } output "subnets" { value = length(local.subnets) > 0 ? google_compute_subnetwork.subnetwork : null description = "The created subnet resources" } output "private_ip_alloc_names" { value = values(google_compute_global_address.private_ip_alloc)[*].name description = "Names of Private IP Allocations used for Peering" } output "private_ip_alloc_addresses" { value = values(google_compute_global_address.private_ip_alloc)[*].address description = "Address of Private IP Allocations used for Peering" } output "private_ip_alloc_ids" { value = values(google_compute_global_address.private_ip_alloc)[*].id description = "ID of Private IP Allocations used for Peering" } output "private_ip_alloc_self_link" { value = values(google_compute_global_address.private_ip_alloc)[*].self_link description = "Self Link of Private IP Allocations used for Peering" } output "private_ip_alloc_details" { value = google_compute_global_address.private_ip_alloc[*] description = "Names of Private IP Allocations for Peering" } output "peering_route_config" { value = google_compute_network_peering_routes_config.peering_routes description = "Peering Route Config" } output "gcve_service_network_connection" { value = google_service_networking_connection.gcve_psa description = "GCVE Service Network Connection" } output "peer_network_project_id" { value = element( split("/", data.google_compute_network_peering.servicenetworking.peer_network ), 6 ) description = "Peer Network Project ID" } output "gcve_network_details" { value = var.create_gcve_network ? google_vmwareengine_network.gcve_network : null description = "GCVE Network Details" } output "gcve_network_name" { value = var.create_gcve_network ? google_vmwareengine_network.gcve_network[0].name : data.google_vmwareengine_network.gcve_network[0].name description = "GCVE Network Name" }