From 267d206a5275180abb50a4f679a4711b1d557aea Mon Sep 17 00:00:00 2001 From: Mark Bainter Date: Fri, 3 Jun 2016 17:49:54 -0500 Subject: [PATCH] Update examples using concat with strings Since using concat() to join strings is deprecated and soon to be removed, this patch updates the sha examples to use interpolation instead. --- website/source/docs/configuration/interpolation.html.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/source/docs/configuration/interpolation.html.md b/website/source/docs/configuration/interpolation.html.md index 8655c59813..3b5c57f79d 100644 --- a/website/source/docs/configuration/interpolation.html.md +++ b/website/source/docs/configuration/interpolation.html.md @@ -183,11 +183,11 @@ The supported built-in functions are: * `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"))}"` + Example: `"${sha1("${aws_vpc.default.tags.customer}-s3-bucket")}"` * `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"))}"` + Example: `"${sha256("${aws_vpc.default.tags.customer}-s3-bucket")}"` * `signum(int)` - Returns -1 for negative numbers, 0 for 0 and 1 for positive numbers. This function is useful when you need to set a value for the first resource and