Overview
- Return values from modules
- Display information about infrastructure on the command line
- Exposes information for other Terraform configurations to use
- Via the
terraform_remote_statedata source
- Via the
- e.g.
output "ip_addr" {
value = google_compute_instance.server.network_interface.0.network_ip
}- Access via
module.<MODULE_NAME><OUTPUT_NAME>
Optional Arguments
descriptionsensitivedepends_on- Dependencies that cannot be recognised implicitly
- Last resort