website: document the naming conventions for outputs
This commit is contained in:
parent
3821c0b45a
commit
4b598860bb
|
@ -49,7 +49,8 @@ output "addresses" {
|
||||||
The `output` block configures a single output variable. Multiple
|
The `output` block configures a single output variable. Multiple
|
||||||
output variables can be configured with multiple output blocks.
|
output variables can be configured with multiple output blocks.
|
||||||
The `NAME` given to the output block is the name used to reference
|
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.
|
Within the block (the `{ }`) is configuration for the output.
|
||||||
These are the parameters that can be set:
|
These are the parameters that can be set:
|
||||||
|
|
|
@ -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
|
specifies what the value will be, and almost always contains
|
||||||
one or more interpolations, since the output data is typically
|
one or more interpolations, since the output data is typically
|
||||||
dynamic. In this case, we're outputting the
|
dynamic. In this case, we're outputting the
|
||||||
|
|
Loading…
Reference in New Issue