mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
19 lines
256 B
HCL
19 lines
256 B
HCL
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}"
|
|
}
|