1
0
Fork 0
terraform-training/project2/base.tf

30 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}"
}