From 8aae8099e82062f0c1ebfaf3ee951396fc11d88f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 9 Oct 2014 21:25:59 -0700 Subject: [PATCH] website: update the docs more to say more --- website/source/docs/configuration/interpolation.html.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/website/source/docs/configuration/interpolation.html.md b/website/source/docs/configuration/interpolation.html.md index d2dcb6a0d..dcec02448 100644 --- a/website/source/docs/configuration/interpolation.html.md +++ b/website/source/docs/configuration/interpolation.html.md @@ -27,7 +27,12 @@ that is a mapping. **To reference attributes of other resources**, the syntax is `TYPE.NAME.ATTRIBUTE`. For example, `${aws_instance.web.id}` will interpolate the ID attribute from the "aws\_instance" -resource named "web". +resource named "web". If the resource has a `count` attribute set, +you can access individual attributes with a zero-based index, such +as `${aws_instance.web.0.id}`. You can also use the splat syntax +to get a list of all the attributes: `${aws_instance.web.*.id}`. +This is documented in more detail in the +[resource configuration page](/docs/configuration/resources.html). **To reference outputs from a module**, the syntax is `MODULE.NAME.OUTPUT`. For example `${module.foo.bar}` will