File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1515 */
1616
1717output "network_name" {
18- value = data. google_compute_network . network . name
18+ value = var . create_network ? google_compute_network . network . name : data. google_compute_network . network . name
1919 description = " The name of the VPC being created"
2020}
2121
2222output "network_self_link" {
23- value = data. google_compute_network . network . self_link
23+ value = var . create_network ? google_compute_network . network . self_link : data. google_compute_network . network . self_link
2424 description = " The URI of the VPC being created"
2525}
2626
@@ -60,12 +60,11 @@ output "subnets_flow_logs" {
6060}
6161
6262output "subnets_secondary_ranges" {
63- value = data . google_compute_subnetwork . created_subnets . * . secondary_ip_range
63+ value = google_compute_subnetwork. subnetwork [ * ] . secondary_ip_range
6464 description = " The secondary ranges associated with these subnets"
6565}
6666
6767output "routes" {
6868 value = google_compute_route. route . * . name
6969 description = " The routes associated with this VPC"
7070}
71-
You can’t perform that action at this time.
0 commit comments