Merge pull request #8080 from hashicorp/docs-mapkeys

docs: Fix map key interpolation documentation
This commit is contained in:
James Nugent 2016-08-09 16:12:05 -04:00 committed by GitHub
commit f18e2546b3
1 changed files with 2 additions and 3 deletions

View File

@ -27,9 +27,8 @@ will be rendered as a literal `${foo}`.
variable name. For example, `${var.foo}` will interpolate the
`foo` variable value. If the variable is a map, then you
can reference static keys in the map with the syntax
`var.MAP.KEY`. For example, `${var.amis.us-east-1}` would
get the value of the `us-east-1` key within the `amis` variable
that is a map.
`var.MAP["KEY"]`. For example, `${var.amis["us-east-1"]` would
get the value of the `us-east-1` key within the `amis` map variable.
**To reference attributes of your own resource**, the syntax is
`self.ATTRIBUTE`. For example `${self.private_ip_address}` will