I have a nested module moduleNested
github.com/acme/moduleNested
that is a composite of:
github.com/acme/moduleA
github.com/acme/moduleB
github.com/acme/moduleC
each module specific its own outputs, lets say 1 each respectively as:
AOut1, BOut1, COut1
When I instantiate the nested module,
module "sample_moduleNested" {
source = "github.com/acme/moduleNested"
the resources are provisioned, but seemingly with no outputs.
How do I expose the aggregated outputs modules for the Nested itself? If I run
terraform output -module="sample_moduleNested"
on the nested module instance I have no outputs? It prints a message:
The module root.sample_moduleNested could not be found. There is nothing to output or am I referencing output wrong?
Do I need to have an explicit:
outputs.tf
file in
github.com/acme/moduleNested
Any help / advice appreciated. Cheers!