diff --git a/website/source/docs/configuration/interpolation.html.md b/website/source/docs/configuration/interpolation.html.md index e51830a8d2..45f45e2879 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`.