From 2078c593a282b44d0e9a5eaa2124b1da8e725543 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Wed, 15 Apr 2015 18:55:49 +0100 Subject: [PATCH] conf: docs added for length func --- website/source/docs/configuration/interpolation.html.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/website/source/docs/configuration/interpolation.html.md b/website/source/docs/configuration/interpolation.html.md index e51830a8d..45f45e287 100644 --- a/website/source/docs/configuration/interpolation.html.md +++ b/website/source/docs/configuration/interpolation.html.md @@ -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`.