diff --git a/three-web-hosts/loadbalancer.tf b/three-web-hosts/loadbalancer.tf index 3cfd4b2..f07554b 100644 --- a/three-web-hosts/loadbalancer.tf +++ b/three-web-hosts/loadbalancer.tf @@ -14,6 +14,7 @@ resource "hcloud_load_balancer_target" "three_web_load_balancer_target" { load_balancer_id = hcloud_load_balancer.three_web_load_balancer.id label_selector = "type=web" use_private_ip = true + depends_on = [hcloud_load_balancer_network.three_web_load_balancer_network] } resource "hcloud_load_balancer_service" "load_balancer_service" {