github.com/federicobaldo/terraform@v0.6.15-0.20160323222747-b20f680cbf05/terraform/test-fixtures/plan-modules/main.tf (about)

     1  module "child" {
     2      source = "./child"
     3  }
     4  
     5  resource "aws_instance" "foo" {
     6      num = "2"
     7  }
     8  
     9  resource "aws_instance" "bar" {
    10      foo = "${aws_instance.foo.num}"
    11  }