fix: remove cross-variable validation from worker lists
Some checks failed
Terraform Plan / Terraform Plan (push) Failing after 17s

Terraform variable validation blocks can only reference the variable itself, so list length checks against worker_count were removed to restore init/plan.
This commit is contained in:
2026-02-28 14:19:00 +00:00
parent 21be01346b
commit 335254b7b2

View File

@@ -67,22 +67,12 @@ variable "worker_cores" {
type = list(number)
default = [4, 4, 3]
description = "vCPU cores for each worker VM"
validation {
condition = length(var.worker_cores) == var.worker_count
error_message = "worker_cores list length must equal worker_count."
}
}
variable "worker_memory_mb" {
type = list(number)
default = [12288, 12288, 12288]
description = "Memory in MB for each worker VM"
validation {
condition = length(var.worker_memory_mb) == var.worker_count
error_message = "worker_memory_mb list length must equal worker_count."
}
}
variable "control_plane_disk_size" {