github.com/hugorut/terraform@v1.1.3/src/terraform/testdata/plan-module-cycle/main.tf (about)

     1  module "a" {
     2      source = "./child"
     3      in = "${aws_instance.b.id}"
     4  }
     5  
     6  resource "aws_instance" "b" {}
     7  
     8  resource "aws_instance" "c" {
     9      some_input = "${module.a.out}"
    10  
    11      depends_on = ["aws_instance.b"]
    12  }