terraform: test regular variable default

This commit is contained in:
Mitchell Hashimoto 2014-07-22 08:14:20 -07:00
parent fe2285898a
commit 5795db9232
2 changed files with 6 additions and 0 deletions

View File

@ -226,6 +226,7 @@ aws_instance.bar:
type = aws_instance
aws_instance.foo:
ID = foo
bar = baz
num = 2
type = aws_instance
`

View File

@ -5,8 +5,13 @@ variable "amis" {
}
}
variable "bar" {
default = "baz"
}
resource "aws_instance" "foo" {
num = "2"
bar = "${var.bar}"
}
resource "aws_instance" "bar" {