I am working with terraform and I like a lot to see the values of the outputs in the standard out, for example:
Apply complete! Resources: 1 added, 1 changed, 1 destroyed.
Outputs:
database_port = 1234
elb_dns_name = myELB-4657823454.eu-central-1.elb.amazonaws.com
However, when working with modules, the outputs are not shown.
My hypothesis is that, as the terraform apply
command is not executed in the same path as the resources are declared, the outputs are not shown in the terminal when it finishes.
Is there any workaround to see the outputs even when I am working with modules?
(Just as a clarification, the outputs flow across the modules of the project correctly, just need a hint to get them printed from the path where I start the execution)