mirror of https://github.com/hashicorp/terraform
parent
af482381aa
commit
3af16c8faf
@ -0,0 +1,14 @@
|
||||
resource "aws_instance" "foo" {
|
||||
id = "foo"
|
||||
num = "2"
|
||||
}
|
||||
|
||||
resource "aws_instance" "bar" {
|
||||
id = "bar"
|
||||
foo = "{aws_instance.foo.num}"
|
||||
dep = "foo"
|
||||
}
|
||||
|
||||
output "foo" {
|
||||
value = "${aws_instance.foo.id}"
|
||||
}
|
||||
Loading…
Reference in new issue