From a68fa6310f891ef23052c6211e6af0e338306e55 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Fri, 25 Nov 2022 14:26:45 +0100 Subject: [PATCH] add dependency --- hcloud-k3s-cluster/main.tf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hcloud-k3s-cluster/main.tf b/hcloud-k3s-cluster/main.tf index db947ab..ebd7678 100644 --- a/hcloud-k3s-cluster/main.tf +++ b/hcloud-k3s-cluster/main.tf @@ -62,6 +62,9 @@ resource "hcloud_server_network" "k3s-node-to-network-allocation" { server_id = hcloud_server.k3s-node[count.index].id subnet_id = hcloud_network_subnet.k3s-net.id ip = "10.0.1.${count.index + 1}" + depends_on = [ + hcloud_server.k3s-node + ] }