website: document the naming conventions for outputs

This commit is contained in:
Michael Mell 2018-02-12 19:33:57 -08:00 committed by Martin Atkins
parent 3821c0b45a
commit 4b598860bb
2 changed files with 5 additions and 2 deletions

View File

@ -49,7 +49,8 @@ output "addresses" {
The `output` block configures a single output variable. Multiple
output variables can be configured with multiple output blocks.
The `NAME` given to the output block is the name used to reference
the output variable.
the output variable. It must conform to Terraform variable naming
conventions if it is to be used as an input to other modules.
Within the block (the `{ }`) is configuration for the output.
These are the parameters that can be set:

View File

@ -35,7 +35,9 @@ output "ip" {
}
```
This defines an output variable named "ip". The `value` field
This defines an output variable named "ip". The name of the variable
must conform to Terraform variable naming conventions if it is
to be used as an input to other modules. The `value` field
specifies what the value will be, and almost always contains
one or more interpolations, since the output data is typically
dynamic. In this case, we're outputting the