variable "datacenters" { type = list(string) } terraform { required_providers { nomad = {} } } resource "nomad_job" "mesh" { jobspec = file("${path.module}/main.hcl") hcl2 { enabled = true vars = { "datacenters" = jsonencode(var.datacenters) } } }