Skip to content

Commit

Permalink
Merge pull request #3479 from elblivion/add-interpolate-docs
Browse files Browse the repository at this point in the history
Add documentation for compact()
  • Loading branch information
apparentlymart committed Oct 11, 2015
2 parents 44135b9 + b62833e commit 80e77bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions website/source/docs/configuration/interpolation.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ The supported built-in functions are:
* `base64encode(string)` - Returns a base64-encoded representation of the
given string.

* `compact(list)` - Removes empty string elements from a list. This can be
useful in some cases, for example when passing joined lists as module
variables or when parsing module outputs.
Example: `compact(module.my_asg.load_balancer_names)`

* `concat(list1, list2)` - Combines two or more lists into a single list.
Example: `concat(aws_instance.db.*.tags.Name, aws_instance.web.*.tags.Name)`

Expand Down

0 comments on commit 80e77bb

Please sign in to comment.