mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-14 02:32:39 -06:00
19 lines
256 B
Terraform
19 lines
256 B
Terraform
|
resource "aws_instance" "foo" {
|
||
|
}
|
||
|
|
||
|
module "child" {
|
||
|
source = "./child"
|
||
|
}
|
||
|
|
||
|
output "root_id" {
|
||
|
value = "${aws_instance.foo.id}"
|
||
|
}
|
||
|
|
||
|
output "child_id" {
|
||
|
value = "${module.child.id}"
|
||
|
}
|
||
|
|
||
|
output "grandchild_id" {
|
||
|
value = "${module.child.grandchild_id}"
|
||
|
}
|