2016-12-20 10:53:01 +00:00
|
|
|
variable "test_var" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
provider "archive" {}
|
|
|
|
|
|
|
|
variable "test_list_var" {
|
2020-10-20 22:08:58 +00:00
|
|
|
type = list(string)
|
2016-12-20 10:53:01 +00:00
|
|
|
default = ["a", "b"]
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "test_map_var" {
|
2020-10-20 22:08:58 +00:00
|
|
|
type = map
|
2016-12-20 10:53:01 +00:00
|
|
|
|
|
|
|
default = {
|
|
|
|
"a" = "a"
|
|
|
|
"b" = "b"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
output "test_output" {
|
2020-10-20 22:08:58 +00:00
|
|
|
value = var.test_var
|
2016-12-20 10:53:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
output "test_list_output" {
|
2020-10-20 22:08:58 +00:00
|
|
|
value = var.test_list_var
|
2016-12-20 10:53:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
output "test_map_output" {
|
2020-10-20 22:08:58 +00:00
|
|
|
value = var.test_map_var
|
2016-12-20 10:53:01 +00:00
|
|
|
}
|