github.com/LorbusChris/terraform@v0.11.12-beta1/terraform/test-fixtures/transform-targets-downstream/main.tf (about)

     1  resource "aws_instance" "foo" {
     2  }
     3  
     4  module "child" {
     5    source = "./child"
     6  }
     7  
     8  output "root_id" {
     9    value = "${aws_instance.foo.id}"
    10  }
    11  
    12  output "child_id" {
    13    value = "${module.child.id}"
    14  }
    15  
    16  output "grandchild_id" {
    17    value = "${module.child.grandchild_id}"
    18  }