I am working with Terraform and have defined a variable of map type as shown below:
hcl
Copy code
variable "original_map" {
type = map(string)
}
original_map = {
key1 = "value1"
key2 = "value2"
}
Now, I want to assign two values to the first key (key1). Ideally, I want the map to look like this:
hcl
Copy code
original_map = {
key1 = ["value1", "value2"]
key2 = "value2"
}
Thanks for your help