How do I specify a list of values in a map?

in →

 private_subnets = lookup(var.private_subnet_map, terraform.workspace)

in →

variable "private_subnet_map" {
  type = map(list)

  default = {
    "workspace1" = ["", "", ""],
    "workspace2" = ["", "", ""],
    "workspace3" = ["", "", ""],

The above syntax doesn’t work. What is the right way to make it work ?

Hi @iyerramji,

What you’ve shown here seems plausible to me, so I think in order to help I’ll need to you to say a little more about what didn’t work. Did Terraform report an error message? If so, please include the entire error message, along with any additional configuration snippets relevant to what the error message is reporting.