github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/testdata/apply-destroy-outputs/main.tf (about)

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