From 1018af56628b0df0e1405f0ff76d13c04f44d814 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Fri, 29 Jan 2016 12:11:40 +0000 Subject: [PATCH] config: Add docs for new base64sha256 func --- .../source/docs/configuration/interpolation.html.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/website/source/docs/configuration/interpolation.html.md b/website/source/docs/configuration/interpolation.html.md index b1f2b9fe60..ef0c029640 100644 --- a/website/source/docs/configuration/interpolation.html.md +++ b/website/source/docs/configuration/interpolation.html.md @@ -80,12 +80,17 @@ The supported built-in functions are: * `base64encode(string)` - Returns a base64-encoded representation of the given string. - * `sha1(string)` - Returns a SHA-1 hash representation of the - given string. + * `base64sha256(string)` - Returns a base64-encoded representation of raw + SHA-256 sum of the given string. + **This is not equivalent** of `base64encode(sha256(string))` + since `sha256()` returns hexadecimal representation. + + * `sha1(string)` - Returns a (conventional) hexadecimal representation of the + SHA-1 hash of the given string. Example: `"${sha1(concat(aws_vpc.default.tags.customer, "-s3-bucket"))}"` - * `sha256(string)` - Returns a SHA-256 hash representation of the - given string. + * `sha256(string)` - Returns a (conventional) hexadecimal representation of the + SHA-256 hash of the given string. Example: `"${sha256(concat(aws_vpc.default.tags.customer, "-s3-bucket"))}"` * `cidrhost(iprange, hostnum)` - Takes an IP address range in CIDR notation