From 1c1ae7184c0ed29818ed11fd6c0641001156e8e5 Mon Sep 17 00:00:00 2001 From: Philip Schmid Date: Fri, 3 Nov 2023 21:45:19 +0100 Subject: [PATCH] Set ami_ssm_parameter to empty value Signed-off-by: Philip Schmid --- 03-talos.tf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/03-talos.tf b/03-talos.tf index 32c122d..e7e8624 100644 --- a/03-talos.tf +++ b/03-talos.tf @@ -5,11 +5,12 @@ module "talos_control_plane_nodes" { count = var.controlplane_count depends_on = [ - data.data.aws_ami.talos + data.aws_ami.talos ] name = "${var.cluster_name}-control-plane-${count.index}" ami = local.ami_id + ami_ssm_parameter = "" monitoring = true instance_type = var.control_plane.instance_type subnet_id = element(data.aws_subnets.public.ids, count.index) @@ -32,11 +33,12 @@ module "talos_worker_group" { for_each = merge([for info in var.worker_groups : { for index in range(0, var.workers_count) : "${info.name}.${index}" => info }]...) depends_on = [ - data.data.aws_ami.talos + data.aws_ami.talos ] name = "${var.cluster_name}-worker-group-${each.value.name}-${trimprefix(each.key, "${each.value.name}.")}" ami = local.ami_id + ami_ssm_parameter = "" monitoring = true instance_type = each.value.instance_type subnet_id = element(data.aws_subnets.public.ids, tonumber(trimprefix(each.key, "${each.value.name}.")))