dda-python-terraform/test/vars_require_input/main.tf

21 lines
293 B
Terraform
Raw Normal View History

variable "ami" {
default = "foo"
type = "string"
}
variable "list" {
default = []
type = "list"
}
variable "map" {
default = {}
2017-05-09 09:47:36 +00:00
type = "map"
}
resource "aws_instance" "bar" {
foo = "${var.ami}"
bar = "${join(",", var.list)}"
baz = "${join(",", keys(var.map))}"
2017-05-09 09:47:36 +00:00
}