mirror of https://github.com/hashicorp/terraform
parent
e5f07567c6
commit
ef60ac5b8c
@ -0,0 +1,3 @@
|
||||
variable "value" {}
|
||||
|
||||
resource "aws_instance" "bar" {}
|
||||
@ -0,0 +1,7 @@
|
||||
output "output" {
|
||||
value = "${aws_instance.foo.foo}"
|
||||
}
|
||||
|
||||
resource "aws_instance" "foo" {
|
||||
compute = "foo"
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
module "foo" {
|
||||
source = "./foo"
|
||||
}
|
||||
|
||||
module "bar" {
|
||||
source = "./bar"
|
||||
value = "${module.foo.output}"
|
||||
}
|
||||
Loading…
Reference in new issue