How do I specify map of list values ?

I am trying to change the list of subnets depending on the workspace that I use. What is the right way to do it ? I get the following error when i try the below way - Error: Invalid default value for variable

variable "public_subnet_map" { type = map(string) default = { "workspace1" = ["", "", ""], "workspace2" = ["", "", ""], "workspace3" = ["", "", ""], } } 
submitted by /u/iyerramji80
[link] [comments]

Read more here:

Content Attribution

This content was originally published by /u/iyerramji80 at Terraform, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: