Merge remote-tracking branch 'origin/master' into fast-dev

This commit is contained in:
Ludovico Magnocavallo
2025-10-16 07:45:00 +00:00
2 changed files with 25 additions and 12 deletions

View File

@@ -938,16 +938,17 @@ secondary_ip_ranges:
| [name](outputs.tf#L51) | Network name. | | | [name](outputs.tf#L51) | Network name. | |
| [network](outputs.tf#L63) | Network resource. | | | [network](outputs.tf#L63) | Network resource. | |
| [network_attachment_ids](outputs.tf#L75) | IDs of network attachments. | | | [network_attachment_ids](outputs.tf#L75) | IDs of network attachments. | |
| [project_id](outputs.tf#L83) | Project ID containing the network. Use this when you need to create resources *after* the VPC is fully set up (e.g. subnets created, shared VPC service projects attached, Private Service Networking configured). | | | [network_id](outputs.tf#L83) | Numeric network id. | |
| [self_link](outputs.tf#L96) | Network self link. | | | [project_id](outputs.tf#L95) | Project ID containing the network. Use this when you need to create resources *after* the VPC is fully set up (e.g. subnets created, shared VPC service projects attached, Private Service Networking configured). | |
| [subnet_ids](outputs.tf#L108) | Map of subnet IDs keyed by name. | | | [self_link](outputs.tf#L108) | Network self link. | |
| [subnet_ips](outputs.tf#L117) | Map of subnet address ranges keyed by name. | | | [subnet_ids](outputs.tf#L120) | Map of subnet IDs keyed by name. | |
| [subnet_ipv6_external_prefixes](outputs.tf#L124) | Map of subnet external IPv6 prefixes keyed by name. | | | [subnet_ips](outputs.tf#L129) | Map of subnet address ranges keyed by name. | |
| [subnet_regions](outputs.tf#L132) | Map of subnet regions keyed by name. | | | [subnet_ipv6_external_prefixes](outputs.tf#L136) | Map of subnet external IPv6 prefixes keyed by name. | |
| [subnet_secondary_ranges](outputs.tf#L139) | Map of subnet secondary ranges keyed by name. | | | [subnet_regions](outputs.tf#L144) | Map of subnet regions keyed by name. | |
| [subnet_self_links](outputs.tf#L150) | Map of subnet self links keyed by name. | | | [subnet_secondary_ranges](outputs.tf#L151) | Map of subnet secondary ranges keyed by name. | |
| [subnets](outputs.tf#L159) | Subnet resources. | | | [subnet_self_links](outputs.tf#L162) | Map of subnet self links keyed by name. | |
| [subnets_private_nat](outputs.tf#L168) | Private NAT subnet resources. | | | [subnets](outputs.tf#L171) | Subnet resources. | |
| [subnets_proxy_only](outputs.tf#L173) | L7 ILB or L7 Regional LB subnet resources. | | | [subnets_private_nat](outputs.tf#L180) | Private NAT subnet resources. | |
| [subnets_psc](outputs.tf#L178) | Private Service Connect subnet resources. | | | [subnets_proxy_only](outputs.tf#L185) | L7 ILB or L7 Regional LB subnet resources. | |
| [subnets_psc](outputs.tf#L190) | Private Service Connect subnet resources. | |
<!-- END TFDOC --> <!-- END TFDOC -->

View File

@@ -80,6 +80,18 @@ output "network_attachment_ids" {
} }
} }
output "network_id" {
description = "Numeric network id."
value = local.network.network_id
depends_on = [
google_compute_network_peering.local,
google_compute_network_peering.remote,
google_compute_shared_vpc_host_project.shared_vpc_host,
google_compute_shared_vpc_service_project.service_projects,
google_service_networking_connection.psa_connection
]
}
output "project_id" { output "project_id" {
description = "Project ID containing the network. Use this when you need to create resources *after* the VPC is fully set up (e.g. subnets created, shared VPC service projects attached, Private Service Networking configured)." description = "Project ID containing the network. Use this when you need to create resources *after* the VPC is fully set up (e.g. subnets created, shared VPC service projects attached, Private Service Networking configured)."
value = var.project_id value = var.project_id