File tree Expand file tree Collapse file tree 2 files changed +2
-31
lines changed
examples/network_connectivity_center Expand file tree Collapse file tree 2 files changed +2
-31
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,7 @@ module "network_connectivity_center" {
4747 virtual_machine = google_compute_instance.router_appliance_1.id
4848 ip_address = google_compute_instance.router_appliance_1.network_interface[0 ].network_ip
4949 },
50- {
51- virtual_machine = google_compute_instance.router_appliance_2.id
52- ip_address = google_compute_instance.router_appliance_2.network_interface[0 ].network_ip
53- }
50+
5451 ]
5552 location = var.instance_region
5653 site_to_site_data_transfer = false
@@ -248,24 +245,3 @@ resource "google_compute_instance" "router_appliance_1" {
248245 }
249246 }
250247}
251-
252- resource "google_compute_instance" "router_appliance_2" {
253- name = " fake-router-appliance-2"
254- machine_type = " e2-medium"
255- project = var. project_id
256- can_ip_forward = true
257- zone = random_shuffle. zone . result [0 ]
258-
259- boot_disk {
260- initialize_params {
261- image = " debian-cloud/debian-11"
262- }
263- }
264-
265- network_interface {
266- subnetwork = module. router_appliance_spoke_vpc . subnets [" ${ var . instance_region } /router-appliance-subnet-01" ]. id
267- access_config {
268- network_tier = " PREMIUM"
269- }
270- }
271- }
Original file line number Diff line number Diff line change @@ -21,12 +21,7 @@ output "project_id" {
2121
2222output "ncc_hub_name" {
2323 description = " Name of the NCC Hub (required for testing)"
24- value = module. network_connectivity_center . ncc_hub . name
25- }
26-
27- output "ncc_hub" {
28- description = " The NCC Hub object"
29- value = module. network_connectivity_center . ncc_hub
24+ value = element (reverse (split (" /" , module. network_connectivity_center . ncc_hub . name )), 0 )
3025}
3126
3227output "vpc_spokes" {
You can’t perform that action at this time.
0 commit comments