diff --git a/infrastructure/equinix-metal/main.tf b/infrastructure/equinix-metal/main.tf index 2f8c639..947e589 100644 --- a/infrastructure/equinix-metal/main.tf +++ b/infrastructure/equinix-metal/main.tf @@ -62,7 +62,7 @@ resource "equinix_metal_device" "control_plane" { resource "equinix_metal_device" "worker" { for_each = var.worker_nodes hostname = "${var.cluster_name}-worker-${each.key}" - plan = each.plan + plan = each.value.plan metro = var.device_metro operating_system = var.device_os billing_cycle = var.billing_cycle diff --git a/infrastructure/equinix-metal/variables.tf b/infrastructure/equinix-metal/variables.tf index 3669933..3517f41 100644 --- a/infrastructure/equinix-metal/variables.tf +++ b/infrastructure/equinix-metal/variables.tf @@ -101,7 +101,7 @@ variable "ssh_private_key_path" { } variable "worker_nodes" { - description = "List of worker node names" + description = "Map of worker nodes and config" type = map(object({ labels = map(string) plan = string