Add split docs

This commit is contained in:
Bryce Kahle 2015-02-17 13:24:34 -05:00
parent adccaad252
commit fa8280a56c
1 changed files with 5 additions and 0 deletions

View File

@ -72,6 +72,11 @@ The supported built-in functions are:
only possible with splat variables from resources with a count only possible with splat variables from resources with a count
greater than one. Example: `join(",", aws_instance.foo.*.id)` greater than one. Example: `join(",", aws_instance.foo.*.id)`
* `split(delim, string)` - Splits the string previously created by `join`
back into a list. This is useful for pushing lists through module
outputs since they currently only support string values.
Example: `split(",", module.amod.server_ids)`
* `lookup(map, key)` - Performs a dynamic lookup into a mapping * `lookup(map, key)` - Performs a dynamic lookup into a mapping
variable. variable.