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.
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.
Reusable Module.tf Configuration Module