Skip to content

Commit

Permalink
Fix permadiff in output
Browse files Browse the repository at this point in the history
  • Loading branch information
gleichda committed Sep 26, 2024
1 parent 27c1e6a commit 2a7c753
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 31 deletions.
26 changes: 1 addition & 25 deletions examples/network_connectivity_center/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ module "network_connectivity_center" {
virtual_machine = google_compute_instance.router_appliance_1.id
ip_address = google_compute_instance.router_appliance_1.network_interface[0].network_ip
},
{
virtual_machine = google_compute_instance.router_appliance_2.id
ip_address = google_compute_instance.router_appliance_2.network_interface[0].network_ip
}

]
location = var.instance_region
site_to_site_data_transfer = false
Expand Down Expand Up @@ -248,24 +245,3 @@ resource "google_compute_instance" "router_appliance_1" {
}
}
}

resource "google_compute_instance" "router_appliance_2" {
name = "fake-router-appliance-2"
machine_type = "e2-medium"
project = var.project_id
can_ip_forward = true
zone = random_shuffle.zone.result[0]

boot_disk {
initialize_params {
image = "debian-cloud/debian-11"
}
}

network_interface {
subnetwork = module.router_appliance_spoke_vpc.subnets["${var.instance_region}/router-appliance-subnet-01"].id
access_config {
network_tier = "PREMIUM"
}
}
}
7 changes: 1 addition & 6 deletions examples/network_connectivity_center/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@ output "project_id" {

output "ncc_hub_name" {
description = "Name of the NCC Hub (required for testing)"
value = module.network_connectivity_center.ncc_hub.name
}

output "ncc_hub" {
description = "The NCC Hub object"
value = module.network_connectivity_center.ncc_hub
value = element(reverse(split("/", module.network_connectivity_center.ncc_hub.name)), 0)
}

output "vpc_spokes" {
Expand Down

0 comments on commit 2a7c753

Please sign in to comment.