execution/02-networking/output.tf (45 lines of code) (raw):
# Copyright 2024 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 "name" {
description = "Name of the VPC network."
value = local.network_name
}
output "network_id" {
description = "Fully qualified network ID."
value = local.network_id
}
output "subnet_ids" {
description = "Map of subnet IDs keyed by name."
value = module.vpc_network.subnet_ids
}
output "vpc_networks" {
description = "Complete details of the VPC network."
value = module.vpc_network
}
output "service_connection_policy_ids" {
description = "Map of service class to service connection policy IDs"
value = {
for service_class, policy in google_network_connectivity_service_connection_policy.policy :
service_class => policy.id
}
}
output "service_connection_policy_details" {
description = "Detailed information about each service connection policy"
value = {
for service_class, policy in google_network_connectivity_service_connection_policy.policy :
service_class => {
id = policy.id
name = policy.name
description = policy.description
network = policy.network
project_id = policy.project
subnetworks = policy.psc_config[0].subnetworks
}
}
}
output "subnet_self_links_for_scp_policy" {
value = local.subnet_self_links_for_scp_policy
description = "The self-links of the subnets where the SCP policy is applied."
}
output "network_connectivity_center" {
value = module.network_connectivity_center
description = "Detailed information about resources created by network connectivity center."
}