Module Outputs
Learn about module output values.
We'll cover the following...
We'll cover the following...
Outputs
Output values expose the attributes stored in local resources for external consumption. This can be a confusing process at first glance.
Uses of output values
Let’s look at a few uses for outputs.
- A child module can use outputs to expose a subset of its resource attributes to a calling module.
- A root module can use outputs to print certain values in the CLI output after running
terraform apply
. - When using a remote state, root module outputs can be accessed by other configurations