dda-python-terraform/test/var_to_output/test.tf
Freddy Tan 2d63fa8716 1. let variables able to accept map and list
2. refactor to be able to accept command as a instance attribute
3. add test cases
2016-12-20 18:53:01 +08:00

31 lines
405 B
HCL

variable "test_var" {
default = ""
}
provider "archive" {}
variable "test_list_var" {
type = "list"
default = ["a", "b"]
}
variable "test_map_var" {
type = "map"
default = {
"a" = "a"
"b" = "b"
}
}
output "test_output" {
value = "${var.test_var}"
}
output "test_list_output" {
value = "${var.test_list_var}"
}
output "test_map_output" {
value = "${var.test_map_var}"
}