Terraform Module Outputs
Learn how to make a Terraform module share useful information with its caller.
We'll cover the following...
We'll cover the following...
Why outputs matter
Terraform modules often create things we’ll need to reference later, such as a server’s IP address, a database endpoint, or a VPC ID.
Outputs are like a module's “report card”: once the module finishes its work, it gives you important values you can use elsewhere.
Step 1: Create a new module
Let’s make a simple module called ltthw_output that reads a local file and outputs its content.
Create a new folder:
mkdir ltthw_outputcd ltthw_output
...