Use of Output Values
Learn why output values are invoked in the child module and state data sources and how they’re rendered.
We'll cover the following...
Terraform can make outputs available after a configuration has been successfully deployed. The outputs created by a root module (that’s the main configuration) are printed as part of the console output and can be queried using the terraform output
command. Output becomes quite useful in child modules and Terraform state data sources.
Outputs in the child module
When we invoke a child module in Terraform, we’re provided access to some attributes or resources created by that module. Outputs in the child module determine what information is available to the calling ...