Trying to spin up a batch of queues using for_each and a YAML variable file. The docs show JSON examples, but our config is in YAML. When I try to load the YAML into a map for for_each, Terraform complains about the type. Here’s the snippet:
variable "queues" {
type = map(any)
}
How do I convert the YAML list into a proper map for the loop? Getting Inappropriate value for variable "queues": element "0": number required." errors.