website: clarify lookup [GH-531]

This commit is contained in:
Mitchell Hashimoto 2015-02-20 10:04:53 -08:00
parent ab414de0ab
commit 3093268106
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ The supported built-in functions are:
greater than one. Example: `join(",", aws_instance.foo.*.id)` greater than one. Example: `join(",", aws_instance.foo.*.id)`
* `lookup(map, key)` - Performs a dynamic lookup into a mapping * `lookup(map, key)` - Performs a dynamic lookup into a mapping
variable. variable. The `map` parameter should be another variable, such
as `var.amis`.
* `element(list, index)` - Returns a single element from a list * `element(list, index)` - Returns a single element from a list
at the given index. If the index is greater than the number of at the given index. If the index is greater than the number of