From efad2fa8702c4b8194067c65998a6a2f20eff145 Mon Sep 17 00:00:00 2001 From: Karim Naufal Date: Tue, 22 Feb 2022 01:38:53 +0100 Subject: [PATCH] removed the cluster provisioning null ressource as not needed --- main.tf | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/main.tf b/main.tf index e10cab3..bc4ff34 100644 --- a/main.tf +++ b/main.tf @@ -156,19 +156,5 @@ resource "hcloud_placement_group" "k3s" { data "hcloud_load_balancer" "traefik" { name = "traefik" - depends_on = [null_resource.cluster_provisioning] -} - - -resource "null_resource" "cluster_provisioning" { - - provisioner "local-exec" { - when = destroy - command = <<-EOT - hcloud load-balancer delete traefik - hcloud network delete k3s - EOT - } - depends_on = [null_resource.first_control_plane] }