docs: Sort interpolation functions alphabetically
This commit is contained in:
parent
664ba5f5a6
commit
b90cd618c2
|
@ -85,14 +85,6 @@ The supported built-in functions are:
|
||||||
**This is not equivalent** of `base64encode(sha256(string))`
|
**This is not equivalent** of `base64encode(sha256(string))`
|
||||||
since `sha256()` returns hexadecimal representation.
|
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 (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
|
* `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``.
|
||||||
|
@ -177,6 +169,14 @@ The supported built-in functions are:
|
||||||
`n` is the index or name of the subcapture. If using a regular expression,
|
`n` is the index or name of the subcapture. If using a regular expression,
|
||||||
the syntax conforms to the [re2 regular expression syntax](https://code.google.com/p/re2/wiki/Syntax).
|
the syntax conforms to the [re2 regular expression syntax](https://code.google.com/p/re2/wiki/Syntax).
|
||||||
|
|
||||||
|
* `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 (conventional) hexadecimal representation of the
|
||||||
|
SHA-256 hash of the given string.
|
||||||
|
Example: `"${sha256(concat(aws_vpc.default.tags.customer, "-s3-bucket"))}"`
|
||||||
|
|
||||||
* `signum(int)` - Returns -1 for negative numbers, 0 for 0 and 1 for positive numbers.
|
* `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
|
This function is useful when you need to set a value for the first resource and
|
||||||
a different value for the rest of the resources.
|
a different value for the rest of the resources.
|
||||||
|
|
Loading…
Reference in New Issue