From 9fa978a45fe86891d1fb7cae05d9773b051e9f57 Mon Sep 17 00:00:00 2001 From: James Nugent Date: Tue, 9 Aug 2016 16:03:05 -0400 Subject: [PATCH] docs: Fix map key interpolation documentation Previously was recommending the now-invalid dot syntax for map keys, change to using HIL indexing. --- website/source/docs/configuration/interpolation.html.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/website/source/docs/configuration/interpolation.html.md b/website/source/docs/configuration/interpolation.html.md index 22b8c04d1..18374f5cc 100644 --- a/website/source/docs/configuration/interpolation.html.md +++ b/website/source/docs/configuration/interpolation.html.md @@ -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