Merge pull request #1542 from TimeIncOSS/length-func-docs

Add docs for length func
This commit is contained in:
Paul Hinze 2015-04-16 13:57:26 -05:00
commit 2566975c8e
1 changed files with 5 additions and 0 deletions

View File

@ -93,6 +93,11 @@ The supported built-in functions are:
only possible with splat variables from resources with a count
greater than one. Example: `join(",", aws_instance.foo.*.id)`
* `length(list)` - Returns a number of members in a given list
or a number of characters in a given string.
* `${length(split(",", "a,b,c"))}` = 3
* `${length("a,b,c")}` = 5
* `lookup(map, key)` - Performs a dynamic lookup into a mapping
variable. The `map` parameter should be another variable, such
as `var.amis`.