keys should be a map with zero or more vendors, and each vendor should be a list with one or more objects, and each object should represent two key/value pairs.
I’m looking for how I should set the type here:
variable "keys" {
type = THIS_PART_IS_WHAT_IM_LOOKING_FOR
default = {}
}
So another option, if you want to defend against typos etc, is to use map(any) or list(map(any)) or whatever, and do custom validation in the variables – for reasons described in that issue, custom validation doesn’t work as you’d expect with an object definition in place. That said, the more complex / nested the object, the trickier that validation is to write and maintain.