Outputs
When you use Terraform Cloud with module and configuration files, the outputs from the module are captured and made available as output variables in the Terraform Cloud workspace. These output variables can then be used in other Terraform configurations or modules.
Categories:
less than a minute
To demonstrate, we can use Terraform code that associates an AWS route table with a subnet and it gets the route table ID from the output of the module that created the route table.

Module: maint.tf
Module: outputs.tf
Configuration: main.tf
Feedback
Was this page helpful?
Glad to hear it!
Sorry to hear that.