dda-python-terraform/test/vars_require_input/main.tf
beelit94 6fc11b313f python-terraform-3 Refactor readme and how default value being passed
1. refactor default values
2. add plan method
2017-01-04 13:21:30 +08:00

20 lines
No EOL
289 B
HCL

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