From affb2c6511b3226b2d1d6c2bccf49d9d8cb7d2f0 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Tue, 18 Oct 2016 23:37:50 +1100 Subject: [PATCH] Added list element syntax --- website/source/docs/configuration/interpolation.html.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/source/docs/configuration/interpolation.html.md b/website/source/docs/configuration/interpolation.html.md index 52b4b6fd2..58d6cda76 100644 --- a/website/source/docs/configuration/interpolation.html.md +++ b/website/source/docs/configuration/interpolation.html.md @@ -33,7 +33,7 @@ key within the `amis` map variable. **To reference user list variables**, the syntax is `["${var.LIST}"]`. For example, `["${var.subnets}"]` would get the value of the `subnets` list, as a -list. +list. You can also return list elements by index: `${var.subnets[idx]}`. **To reference attributes of your own resource**, the syntax is `self.ATTRIBUTE`. For example `${self.private_ip_address}` will