add template for directives
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
module "a" {
|
||||
source = "./child"
|
||||
in = "${aws_instance.b.id}"
|
||||
}
|
||||
|
||||
resource "aws_instance" "b" {}
|
||||
|
||||
resource "aws_instance" "c" {
|
||||
some_input = "${module.a.out}"
|
||||
|
||||
depends_on = ["aws_instance.b"]
|
||||
}
|
||||
Reference in New Issue
Block a user