added the function to the docs

This commit is contained in:
Joseph Kordish 2016-01-06 15:19:54 -06:00
parent e1b62c76ad
commit 21fe576cb5
1 changed files with 5 additions and 1 deletions

View File

@ -80,6 +80,10 @@ The supported built-in functions are:
* `base64encode(string)` - Returns a base64-encoded representation of the * `base64encode(string)` - Returns a base64-encoded representation of the
given string. given string.
* `sha1(string)` - Returns a sha1 hash representation of the
given string.
Example: `"${sha1(concat(aws_vpc.default.tags.customer, "-s3-bucket"))}"`
* `cidrhost(iprange, hostnum)` - Takes an IP address range in CIDR notation * `cidrhost(iprange, hostnum)` - Takes an IP address range in CIDR notation
and creates an IP address with the given host number. For example, and creates an IP address with the given host number. For example,
``cidrhost("10.0.0.0/8", 2)`` returns ``10.0.0.2``. ``cidrhost("10.0.0.0/8", 2)`` returns ``10.0.0.2``.