29 lines
379 B
HCL
29 lines
379 B
HCL
variable "a" {}
|
|
variable "b" {
|
|
default = "test"
|
|
}
|
|
variable "c" {
|
|
type = list
|
|
default = ["foo", "bar", "baz"]
|
|
}
|
|
variable "d" {
|
|
type = map
|
|
default = {
|
|
"foo" = "bar"
|
|
"aze" = "rty"
|
|
"qsd" = "fgh"
|
|
}
|
|
}
|
|
|
|
output "ov1" {
|
|
value = "${var.a}"
|
|
}
|
|
output "ov2" {
|
|
value = "${var.b}"
|
|
}
|
|
output "ov3" {
|
|
value = "${var.c[2]}"
|
|
}
|
|
output "ov4" {
|
|
value = "${var.d.foo}"
|
|
}
|