From c2fbe6be561cc2a1317a2ed63796db14a7bfc405 Mon Sep 17 00:00:00 2001 From: vandomej Date: Sun, 28 Sep 2025 12:20:52 -0700 Subject: [PATCH] Storing variables in self.triggers --- control_plane/main.tf | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/control_plane/main.tf b/control_plane/main.tf index 4aea8a3..b6dbfc7 100644 --- a/control_plane/main.tf +++ b/control_plane/main.tf @@ -46,6 +46,10 @@ resource "random_id" "cluster_suffix" { resource "null_resource" "talos_cluster" { triggers = { + cluster_name = local.unique_cluster_name + memory_mb = var.memory_mb + vcpu_count = var.vcpu_count + talos_version = var.talos_version config_hash = sha1(join("", [ locals.unique_cluster_name, tostring(var.memory_mb), @@ -59,8 +63,8 @@ resource "null_resource" "talos_cluster" { provisioner "local-exec" { command = <