github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/terraform/test-fixtures/apply-destroy-outputs/main.tf (about)

     1  resource "aws_instance" "foo" {
     2      id = "foo"
     3      num = "2"
     4  }
     5  
     6  resource "aws_instance" "bar" {
     7      id = "bar"
     8      foo = "{aws_instance.foo.num}"
     9      dep = "foo"
    10  }
    11  
    12  output "foo" {
    13      value = "${aws_instance.foo.id}"
    14  }