From c7dc4ddaa4e87df495fbde059cd1fe07d595f973 Mon Sep 17 00:00:00 2001 From: Daniel Panzella Date: Tue, 21 Jan 2025 09:18:52 -0800 Subject: [PATCH] fix: Set the default value or it causes a diff and recreate in TF (#208) --- modules/private_link/main.tf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/private_link/main.tf b/modules/private_link/main.tf index b7fa9f8..6982aa2 100644 --- a/modules/private_link/main.tf +++ b/modules/private_link/main.tf @@ -33,7 +33,7 @@ resource "google_compute_region_backend_service" "internal_nlb" { load_balancing_scheme = "INTERNAL_MANAGED" backend { group = google_compute_region_network_endpoint_group.external_lb.id - balancing_mode = "" + balancing_mode = "UTILIZATION" } } @@ -54,6 +54,8 @@ resource "google_compute_forwarding_rule" "internal_nlb" { network = var.network.id subnetwork = var.subnetwork.self_link + + depends_on = [google_compute_subnetwork.proxy] } resource "google_compute_service_attachment" "default" {