From 267b0497843274c2ab712838b7500ad788122813 Mon Sep 17 00:00:00 2001 From: Tobias Schuering Date: Fri, 3 Nov 2023 05:04:05 +0100 Subject: [PATCH] Add dependency for updating control plane configs --- control_planes.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/control_planes.tf b/control_planes.tf index 08bb2158..280a940a 100644 --- a/control_planes.tf +++ b/control_planes.tf @@ -139,6 +139,11 @@ resource "null_resource" "control_plane_config" { provisioner "remote-exec" { inline = [local.k3s_config_update_script] } + + depends_on = [ + null_resource.first_control_plane, + hcloud_network_subnet.control_plane + ] } resource "null_resource" "control_planes" {