mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-27 17:06:27 -06:00
2e5791ab2b
We already accept HCL encoded input for -vars, and this expands that to accept HCL when prompted for a value on the command line as well.
13 lines
171 B
HCL
13 lines
171 B
HCL
variable "mapped" {
|
|
type = "map"
|
|
}
|
|
|
|
variable "listed" {
|
|
type = "list"
|
|
}
|
|
|
|
resource "hcl_instance" "hcltest" {
|
|
foo = "${var.listed}"
|
|
bar = "${var.mapped}"
|
|
}
|