I have a module structure like below:
$ tree complete-module/
.
├── README.md
├── main.tf
├── variables.tf
├── outputs.tf
├── ...
├── modules/
│ ├── nestedA/
│ │ ├── README.md
│ │ ├── variables.tf
│ │ ├── main.tf
│ │ ├── outputs.tf
│ ├── nestedB/
│ ├── .../
├── examples/
│ ├── exampleA/
│ │ ├── main.tf
│ ├── exampleB/
│ ├── .../
The module nestedA has output varibles defined.
In order to see the nestedA's output variables after terraform apply, I need to propagate the root /main.tf variables and output them again in the root /outputs.tf.
While it works, I wonder if there is any shortcut so that I automatically see all child module's output variables after terraform apply without doing the plumbing code and re-define them in root /outputs.tf?