Skip to content

Commit

Permalink
for_each corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvveen committed Jan 9, 2025
1 parent f036276 commit 4214e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 03-talos.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module "talos_worker_group" {
resource "talos_machine_secrets" "this" {}

data "talos_machine_configuration" "controlplane" {
for_each = { for index in range(0, var.controlplane_count) : index => index }
for_each = toset(range(0, var.controlplane_count))

cluster_name = var.cluster_name
cluster_endpoint = "https://${module.elb_k8s_elb.elb_dns_name}"
Expand Down

0 comments on commit 4214e3e

Please sign in to comment.