Using port number in Terraform output

Problem

You would like to output some additional information (ie port number) in addition to the variable provided by Terraform.

Solution

Use interpolation of the Terraform variable using ${var} together with the rest of the string you would like to output, like:

More information about the language https://learn.hashicorp.com/tutorials/terraform/outputs?in=terraform/configuration-language