Module Outputs
Discuss and review the Terraform module outputs.
We'll cover the following
We’re familiar with the modules’ outputs, but in this lesson, we’ll look at the more nuanced use of outputs and their visibility to other modules.
Terraform outputs and module relationships become more important as our scripts become increasingly sophisticated.
A simple output module
While module inputs are defined with the variable
keyword, outputs are defined with the output
keyword. We’re going to type in another local module that outputs the filename
of a local_file
resource like this:
Get hands-on with 1400+ tech skills courses.