You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
variable "ami" {
|
|
default = "foo"
|
|
type = string
|
|
}
|
|
|
|
variable "list" {
|
|
default = []
|
|
type = list
|
|
}
|
|
|
|
variable "map" {
|
|
default = {}
|
|
type = map
|
|
}
|
|
|
|
resource "aws_instance" "bar" {
|
|
foo = "${var.ami}"
|
|
bar = "${join(",", var.list)}"
|
|
baz = "${join(",", keys(var.map))}"
|
|
}
|