Skip to content

Commit

Permalink
Set ami_ssm_parameter to empty value
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Schmid <[email protected]>
  • Loading branch information
PhilipSchmid committed Nov 3, 2023
1 parent c9dee60 commit 1c1ae71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions 03-talos.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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}.")))
Expand Down

0 comments on commit 1c1ae71

Please sign in to comment.