github.com/bengesoff/terraform@v0.3.1-0.20141018223233-b25a53629922/website/source/docs/configuration/outputs.html.md (about) 1 --- 2 layout: "docs" 3 page_title: "Configuring Outputs" 4 sidebar_current: "docs-config-outputs" 5 --- 6 7 # Output Configuration 8 9 Outputs define values that will be highlighted to the user 10 when Terraform applies, and can be queried easily using the 11 [output command](/docs/commands/output.html). Output usage 12 is covered in more detail in the 13 [getting started guide](/intro/getting-started/outputs.html). 14 This page covers configuration syntax for outputs. 15 16 Terraform knows a lot about the infrastructure it manages. 17 Most resources have a handful or even a dozen or more attributes 18 associated with it. Outputs are a way to easily extract 19 information. 20 21 This page assumes you're familiar with the 22 [configuration syntax](/docs/configuration/syntax.html) 23 already. 24 25 ## Example 26 27 An output configuration looks like the following: 28 29 ``` 30 output "address" { 31 value = "${aws_instance.web.public_dns}" 32 } 33 ``` 34 35 ## Description 36 37 The `output` block configures a single output variable. Multiple 38 output variables can be configured with multiple output blocks. 39 The `NAME` given to the output block is the name used to reference 40 the output variable. 41 42 Within the block (the `{ }`) is configuration for the output. 43 These are the parameters that can be set: 44 45 * `value` (required, string) - The value of the output. This must 46 be a string. This usually includes an interpolation since outputs 47 that are static aren't usually useful. 48 49 ## Syntax 50 51 The full syntax is: 52 53 ``` 54 output NAME { 55 value = VALUE 56 } 57 ```