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

21 lines
287 B
Terraform
Raw Permalink Normal View History

variable "ami" {
default = "foo"
2022-01-19 15:26:50 +00:00
type = string
}
variable "list" {
default = []
2022-01-19 15:26:50 +00:00
type = list
}
variable "map" {
default = {}
2022-01-19 15:26:50 +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
}