Merge pull request #8080 from hashicorp/docs-mapkeys
docs: Fix map key interpolation documentation
This commit is contained in:
commit
f18e2546b3
|
@ -27,9 +27,8 @@ will be rendered as a literal `${foo}`.
|
||||||
variable name. For example, `${var.foo}` will interpolate the
|
variable name. For example, `${var.foo}` will interpolate the
|
||||||
`foo` variable value. If the variable is a map, then you
|
`foo` variable value. If the variable is a map, then you
|
||||||
can reference static keys in the map with the syntax
|
can reference static keys in the map with the syntax
|
||||||
`var.MAP.KEY`. For example, `${var.amis.us-east-1}` would
|
`var.MAP["KEY"]`. For example, `${var.amis["us-east-1"]` would
|
||||||
get the value of the `us-east-1` key within the `amis` variable
|
get the value of the `us-east-1` key within the `amis` map variable.
|
||||||
that is a map.
|
|
||||||
|
|
||||||
**To reference attributes of your own resource**, the syntax is
|
**To reference attributes of your own resource**, the syntax is
|
||||||
`self.ATTRIBUTE`. For example `${self.private_ip_address}` will
|
`self.ATTRIBUTE`. For example `${self.private_ip_address}` will
|
||||||
|
|
Loading…
Reference in New Issue