website: Version notes: Add new -> old links to 0.12 language docs (function pages)
This commit is contained in:
parent
4a190127b9
commit
2c50808bbb
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `abs` Function
|
# `abs` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`abs` returns the absolute value of the given number. In other words, if the
|
`abs` returns the absolute value of the given number. In other words, if the
|
||||||
number is zero or positive then it is returned as-is, but if it is negative
|
number is zero or positive then it is returned as-is, but if it is negative
|
||||||
then it is multiplied by -1 to make it positive before returning it.
|
then it is multiplied by -1 to make it positive before returning it.
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `base64decode` Function
|
# `base64decode` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`base64decode` takes a string containing a Base64 character sequence and
|
`base64decode` takes a string containing a Base64 character sequence and
|
||||||
returns the original string.
|
returns the original string.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `base64encode` Function
|
# `base64encode` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`base64encode` applies Base64 encoding to a string.
|
`base64encode` applies Base64 encoding to a string.
|
||||||
|
|
||||||
Terraform uses the "standard" Base64 alphabet as defined in
|
Terraform uses the "standard" Base64 alphabet as defined in
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `base64gzip` Function
|
# `base64gzip` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`base64gzip` compresses a string with gzip and then encodes the result in
|
`base64gzip` compresses a string with gzip and then encodes the result in
|
||||||
Base64 encoding.
|
Base64 encoding.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `base64sha256` Function
|
# `base64sha256` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`base64sha256` computes the SHA256 hash of a given string and encodes it with
|
`base64sha256` computes the SHA256 hash of a given string and encodes it with
|
||||||
Base64. This is not equivalent to base64encode(sha256512("test")) since sha512()
|
Base64. This is not equivalent to base64encode(sha256512("test")) since sha512()
|
||||||
returns hexadecimal representation.
|
returns hexadecimal representation.
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `base64sha512` Function
|
# `base64sha512` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`base64sha512` computes the SHA512 hash of a given string and encodes it with
|
`base64sha512` computes the SHA512 hash of a given string and encodes it with
|
||||||
Base64. This is not equivalent to base64encode(sha512("test")) since sha512()
|
Base64. This is not equivalent to base64encode(sha512("test")) since sha512()
|
||||||
returns hexadecimal representation.
|
returns hexadecimal representation.
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `basename` Function
|
# `basename` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`basename` takes a string containing a filesystem path and removes all except
|
`basename` takes a string containing a filesystem path and removes all except
|
||||||
the last portion from it.
|
the last portion from it.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `bcrypt` Function
|
# `bcrypt` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`bcrypt` computes a hash of the given string using the Blowfish cipher,
|
`bcrypt` computes a hash of the given string using the Blowfish cipher,
|
||||||
returning a string in
|
returning a string in
|
||||||
[the _Modular Crypt Format_](https://passlib.readthedocs.io/en/stable/modular_crypt_format.html)
|
[the _Modular Crypt Format_](https://passlib.readthedocs.io/en/stable/modular_crypt_format.html)
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `ceil` Function
|
# `ceil` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`ceil` returns the closest whole number that is greater than or equal to the
|
`ceil` returns the closest whole number that is greater than or equal to the
|
||||||
given value, which may be a fraction.
|
given value, which may be a fraction.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `chomp` Function
|
# `chomp` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`chomp` removes newline characters at the end of a string.
|
`chomp` removes newline characters at the end of a string.
|
||||||
|
|
||||||
This can be useful if, for example, the string was read from a file that has
|
This can be useful if, for example, the string was read from a file that has
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `chunklist` Function
|
# `chunklist` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`chunklist` splits a single list into fixed-size chunks, returning a list
|
`chunklist` splits a single list into fixed-size chunks, returning a list
|
||||||
of lists.
|
of lists.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `cidrhost` Function
|
# `cidrhost` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`cidrhost` calculates a full host IP address for a given host number within
|
`cidrhost` calculates a full host IP address for a given host number within
|
||||||
a given IP network address prefix.
|
a given IP network address prefix.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `cidrnetmask` Function
|
# `cidrnetmask` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`cidrnetmask` converts an IPv4 address prefix given in CIDR notation into
|
`cidrnetmask` converts an IPv4 address prefix given in CIDR notation into
|
||||||
a subnet mask address.
|
a subnet mask address.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `cidrsubnet` Function
|
# `cidrsubnet` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`cidrsubnet` calculates a subnet address within given IP network address prefix.
|
`cidrsubnet` calculates a subnet address within given IP network address prefix.
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `coalesce` Function
|
# `coalesce` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`coalesce` takes any number of string arguments and returns the first one
|
`coalesce` takes any number of string arguments and returns the first one
|
||||||
that isn't empty.
|
that isn't empty.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `coalescelist` Function
|
# `coalescelist` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`coalescelist` takes any number of list arguments and returns the first one
|
`coalescelist` takes any number of list arguments and returns the first one
|
||||||
that isn't empty.
|
that isn't empty.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `compact` Function
|
# `compact` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`compact` takes a list of strings and returns a new list with any empty string
|
`compact` takes a list of strings and returns a new list with any empty string
|
||||||
elements removed.
|
elements removed.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `contains` Function
|
# `contains` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`contains` determines whether a given list contains a given single value
|
`contains` determines whether a given list contains a given single value
|
||||||
as one of its elements.
|
as one of its elements.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `csvdecode` Function
|
# `csvdecode` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`csvdecode` decodes a string containing CSV-formatted data and produces a
|
`csvdecode` decodes a string containing CSV-formatted data and produces a
|
||||||
list of maps representing that data.
|
list of maps representing that data.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `dirname` Function
|
# `dirname` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`dirname` takes a string containing a filesystem path and removes the last
|
`dirname` takes a string containing a filesystem path and removes the last
|
||||||
portion from it.
|
portion from it.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `distinct` Function
|
# `distinct` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`distinct` takes a list and returns a new list with any duplicate elements
|
`distinct` takes a list and returns a new list with any duplicate elements
|
||||||
removed.
|
removed.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `element` Function
|
# `element` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`element` retrieves a single element from a list.
|
`element` retrieves a single element from a list.
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `file` Function
|
# `file` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`file` reads the contents of a file at the given path and returns them as
|
`file` reads the contents of a file at the given path and returns them as
|
||||||
a string.
|
a string.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `filebase64` Function
|
# `filebase64` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`filebase64` reads the contents of a file at the given path and returns them as
|
`filebase64` reads the contents of a file at the given path and returns them as
|
||||||
a base64-encoded string.
|
a base64-encoded string.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `filebase64sha256` Function
|
# `filebase64sha256` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`filebase64sha256` is a variant of [`base64sha256`](./base64sha256.html)
|
`filebase64sha256` is a variant of [`base64sha256`](./base64sha256.html)
|
||||||
that hashes the contents of a given file rather than a literal string.
|
that hashes the contents of a given file rather than a literal string.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `filebase64sha512` Function
|
# `filebase64sha512` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`filebase64sha512` is a variant of [`base64sha512`](./base64sha512.html)
|
`filebase64sha512` is a variant of [`base64sha512`](./base64sha512.html)
|
||||||
that hashes the contents of a given file rather than a literal string.
|
that hashes the contents of a given file rather than a literal string.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `fileexists` Function
|
# `fileexists` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`fileexists` determines whether a file exists at a given path.
|
`fileexists` determines whether a file exists at a given path.
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `filemd5` Function
|
# `filemd5` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`filemd5` is a variant of [`md5`](./md5.html)
|
`filemd5` is a variant of [`md5`](./md5.html)
|
||||||
that hashes the contents of a given file rather than a literal string.
|
that hashes the contents of a given file rather than a literal string.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `filesha1` Function
|
# `filesha1` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`filesha1` is a variant of [`sha1`](./sha1.html)
|
`filesha1` is a variant of [`sha1`](./sha1.html)
|
||||||
that hashes the contents of a given file rather than a literal string.
|
that hashes the contents of a given file rather than a literal string.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `filesha256` Function
|
# `filesha256` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`filesha256` is a variant of [`sha256`](./sha256.html)
|
`filesha256` is a variant of [`sha256`](./sha256.html)
|
||||||
that hashes the contents of a given file rather than a literal string.
|
that hashes the contents of a given file rather than a literal string.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `filesha512` Function
|
# `filesha512` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`filesha512` is a variant of [`sha512`](./sha512.html)
|
`filesha512` is a variant of [`sha512`](./sha512.html)
|
||||||
that hashes the contents of a given file rather than a literal string.
|
that hashes the contents of a given file rather than a literal string.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `flatten` Function
|
# `flatten` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`flatten` takes a list and replaces any elements that are lists with a
|
`flatten` takes a list and replaces any elements that are lists with a
|
||||||
flattened sequence of the list contents.
|
flattened sequence of the list contents.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `floor` Function
|
# `floor` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`floor` returns the closest whole number that is less than or equal to the
|
`floor` returns the closest whole number that is less than or equal to the
|
||||||
given value, which may be a fraction.
|
given value, which may be a fraction.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `format` Function
|
# `format` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`format` produces a string by formatting a number of other values according
|
`format` produces a string by formatting a number of other values according
|
||||||
to a specification string. It is similar to the `printf` function in C, and
|
to a specification string. It is similar to the `printf` function in C, and
|
||||||
other similar functions in other programming languages.
|
other similar functions in other programming languages.
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `formatdate` Function
|
# `formatdate` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`formatdate` converts a timestamp into a different time format.
|
`formatdate` converts a timestamp into a different time format.
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `formatlist` Function
|
# `formatlist` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`formatlist` produces a list of strings by formatting a number of other
|
`formatlist` produces a list of strings by formatting a number of other
|
||||||
values according to a specification string.
|
values according to a specification string.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `indent` Function
|
# `indent` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`indent` adds a given number of spaces to the beginnings of all but the first
|
`indent` adds a given number of spaces to the beginnings of all but the first
|
||||||
line in a given multi-line string.
|
line in a given multi-line string.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `index` Function
|
# `index` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`index` finds the element index for a given value in a list.
|
`index` finds the element index for a given value in a list.
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `join` Function
|
# `join` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`join` produces a string by concatenating together all elements of a given
|
`join` produces a string by concatenating together all elements of a given
|
||||||
list of strings with the given delimiter.
|
list of strings with the given delimiter.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `jsondecode` Function
|
# `jsondecode` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`jsondecode` interprets a given string as JSON, returning a representation
|
`jsondecode` interprets a given string as JSON, returning a representation
|
||||||
of the result of decoding that string.
|
of the result of decoding that string.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `jsonencode` Function
|
# `jsonencode` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`jsonencode` encodes a given value to a string using JSON syntax.
|
`jsonencode` encodes a given value to a string using JSON syntax.
|
||||||
|
|
||||||
The JSON encoding is defined in [RFC 7159](https://tools.ietf.org/html/rfc7159).
|
The JSON encoding is defined in [RFC 7159](https://tools.ietf.org/html/rfc7159).
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `keys` Function
|
# `keys` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`keys` takes a map and returns a list containing the keys from that map.
|
`keys` takes a map and returns a list containing the keys from that map.
|
||||||
|
|
||||||
The keys are returned in lexicographical order, ensuring that the result will
|
The keys are returned in lexicographical order, ensuring that the result will
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `length` Function
|
# `length` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`length` determines the length of a given list, map, or string.
|
`length` determines the length of a given list, map, or string.
|
||||||
|
|
||||||
If given a list or map, the result is the number of elements in that collection.
|
If given a list or map, the result is the number of elements in that collection.
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `list` Function
|
# `list` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
~> **This function is deprecated.** From Terraform v0.12, the Terraform
|
~> **This function is deprecated.** From Terraform v0.12, the Terraform
|
||||||
language has built-in syntax for creating lists using the `[` and `]`
|
language has built-in syntax for creating lists using the `[` and `]`
|
||||||
delimiters. Use the built-in syntax instead. The `list` function will be
|
delimiters. Use the built-in syntax instead. The `list` function will be
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `log` Function
|
# `log` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`log` returns the logarithm of a given number in a given base.
|
`log` returns the logarithm of a given number in a given base.
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `lookup` Function
|
# `lookup` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`lookup` retrieves the value of a single element from a map, given its key.
|
`lookup` retrieves the value of a single element from a map, given its key.
|
||||||
If the given key does not exist, a the given default value is returned instead.
|
If the given key does not exist, a the given default value is returned instead.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `lower` Function
|
# `lower` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`lower` converts all cased letters in the given string to lowercase.
|
`lower` converts all cased letters in the given string to lowercase.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `map` Function
|
# `map` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
~> **This function is deprecated.** From Terraform v0.12, the Terraform
|
~> **This function is deprecated.** From Terraform v0.12, the Terraform
|
||||||
language has built-in syntax for creating maps using the `{` and `}`
|
language has built-in syntax for creating maps using the `{` and `}`
|
||||||
delimiters. Use the built-in syntax instead. The `map` function will be
|
delimiters. Use the built-in syntax instead. The `map` function will be
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `matchkeys` Function
|
# `matchkeys` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`matchkeys` constructs a new list by taking a subset of elements from one
|
`matchkeys` constructs a new list by taking a subset of elements from one
|
||||||
list whose indexes match the corresponding indexes of values in another
|
list whose indexes match the corresponding indexes of values in another
|
||||||
list.
|
list.
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `max` Function
|
# `max` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`max` takes one or more numbers and returns the greatest number from the set.
|
`max` takes one or more numbers and returns the greatest number from the set.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `md5` Function
|
# `md5` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`md5` computes the MD5 hash of a given string and encodes it with
|
`md5` computes the MD5 hash of a given string and encodes it with
|
||||||
hexadecimal digits.
|
hexadecimal digits.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `merge` Function
|
# `merge` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`merge` takes an arbitrary number of maps and returns a single map that
|
`merge` takes an arbitrary number of maps and returns a single map that
|
||||||
contains a merged set of elements from all of the maps.
|
contains a merged set of elements from all of the maps.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `min` Function
|
# `min` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`min` takes one or more numbers and returns the smallest number from the set.
|
`min` takes one or more numbers and returns the smallest number from the set.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `pathexpand` Function
|
# `pathexpand` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`pathexpand` takes a filesystem path that might begin with a `~` segment,
|
`pathexpand` takes a filesystem path that might begin with a `~` segment,
|
||||||
and if so it replaces that segment with the current user's home directory
|
and if so it replaces that segment with the current user's home directory
|
||||||
path.
|
path.
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `pow` Function
|
# `pow` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`pow` calculates an exponent, by raising its first argument to the power of the second argument.
|
`pow` calculates an exponent, by raising its first argument to the power of the second argument.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `replace` Function
|
# `replace` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`replace` searches a given string for another given substring, and replaces
|
`replace` searches a given string for another given substring, and replaces
|
||||||
each occurence with a given replacement string.
|
each occurence with a given replacement string.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `rsadecrypt` Function
|
# `rsadecrypt` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`rsadecrypt` decrypts an RSA-encrypted ciphertext, returning the corresponding
|
`rsadecrypt` decrypts an RSA-encrypted ciphertext, returning the corresponding
|
||||||
cleartext.
|
cleartext.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `sethaselement` Function
|
# `sethaselement` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
The `sethaselement` function tests whether a given value is in a given set.
|
The `sethaselement` function tests whether a given value is in a given set.
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `setintersection` Function
|
# `setintersection` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
The `setintersection` function takes multiple sets and produces a single set
|
The `setintersection` function takes multiple sets and produces a single set
|
||||||
containing only the elements that all of the given sets have in common.
|
containing only the elements that all of the given sets have in common.
|
||||||
In other words, it computes the
|
In other words, it computes the
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `setproduct` Function
|
# `setproduct` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
The `setproduct` function finds all of the possible combinations of elements
|
The `setproduct` function finds all of the possible combinations of elements
|
||||||
from all of the given sets by computing the
|
from all of the given sets by computing the
|
||||||
[cartesian product](https://en.wikipedia.org/wiki/Cartesian_product).
|
[cartesian product](https://en.wikipedia.org/wiki/Cartesian_product).
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `setunion` Function
|
# `setunion` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
The `setunion` function takes multiple sets and produces a single set
|
The `setunion` function takes multiple sets and produces a single set
|
||||||
containing the elements from all of the given sets. In other words, it
|
containing the elements from all of the given sets. In other words, it
|
||||||
computes the [union](https://en.wikipedia.org/wiki/Union_(set_theory)) of
|
computes the [union](https://en.wikipedia.org/wiki/Union_(set_theory)) of
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `sha1` Function
|
# `sha1` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`sha1` computes the SHA1 hash of a given string and encodes it with
|
`sha1` computes the SHA1 hash of a given string and encodes it with
|
||||||
hexadecimal digits.
|
hexadecimal digits.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `sha256` Function
|
# `sha256` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`sha256` computes the SHA256 hash of a given string and encodes it with
|
`sha256` computes the SHA256 hash of a given string and encodes it with
|
||||||
hexadecimal digits.
|
hexadecimal digits.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `sha512` Function
|
# `sha512` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`sha512` computes the SHA512 hash of a given string and encodes it with
|
`sha512` computes the SHA512 hash of a given string and encodes it with
|
||||||
hexadecimal digits.
|
hexadecimal digits.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `signum` Function
|
# `signum` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`signum` determines the sign of a number, returning a number between -1 and
|
`signum` determines the sign of a number, returning a number between -1 and
|
||||||
1 to represent the sign.
|
1 to represent the sign.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `slice` Function
|
# `slice` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`slice` extracts some consecutive elements from within a list.
|
`slice` extracts some consecutive elements from within a list.
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `sort` Function
|
# `sort` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`sort` takes a list of strings and returns a new list with those strings
|
`sort` takes a list of strings and returns a new list with those strings
|
||||||
sorted lexicographically.
|
sorted lexicographically.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `split` Function
|
# `split` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`split` produces a list by dividing a given string at all occurences of a
|
`split` produces a list by dividing a given string at all occurences of a
|
||||||
given separator.
|
given separator.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `substr` Function
|
# `substr` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`substr` extracts a substring from a given string by offset and length.
|
`substr` extracts a substring from a given string by offset and length.
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `templatefile` Function
|
# `templatefile` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`templatefile` reads the file at the given path and renders its content
|
`templatefile` reads the file at the given path and renders its content
|
||||||
as a template using a supplied set of template variables.
|
as a template using a supplied set of template variables.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `timeadd` Function
|
# `timeadd` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`timeadd` adds a duration to a timestamp, returning a new timestamp.
|
`timeadd` adds a duration to a timestamp, returning a new timestamp.
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `timestamp` Function
|
# `timestamp` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`timestamp` returns the current date and time.
|
`timestamp` returns the current date and time.
|
||||||
|
|
||||||
In the Terraform language, timestamps are conventionally represented as
|
In the Terraform language, timestamps are conventionally represented as
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `title` Function
|
# `title` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`title` converts the first letter of each word in the given string to uppercase.
|
`title` converts the first letter of each word in the given string to uppercase.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `tobool` Function
|
# `tobool` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`tobool` converts its argument to a boolean value.
|
`tobool` converts its argument to a boolean value.
|
||||||
|
|
||||||
Explicit type conversions are rarely necessary in Terraform because it will
|
Explicit type conversions are rarely necessary in Terraform because it will
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `tolist` Function
|
# `tolist` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`tolist` converts its argument to a list value.
|
`tolist` converts its argument to a list value.
|
||||||
|
|
||||||
Explicit type conversions are rarely necessary in Terraform because it will
|
Explicit type conversions are rarely necessary in Terraform because it will
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `tomap` Function
|
# `tomap` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`tomap` converts its argument to a map value.
|
`tomap` converts its argument to a map value.
|
||||||
|
|
||||||
Explicit type conversions are rarely necessary in Terraform because it will
|
Explicit type conversions are rarely necessary in Terraform because it will
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `tonumber` Function
|
# `tonumber` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`tonumber` converts its argument to a number value.
|
`tonumber` converts its argument to a number value.
|
||||||
|
|
||||||
Explicit type conversions are rarely necessary in Terraform because it will
|
Explicit type conversions are rarely necessary in Terraform because it will
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `toset` Function
|
# `toset` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`toset` converts its argument to a set value.
|
`toset` converts its argument to a set value.
|
||||||
|
|
||||||
Explicit type conversions are rarely necessary in Terraform because it will
|
Explicit type conversions are rarely necessary in Terraform because it will
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `tostring` Function
|
# `tostring` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`tostring` converts its argument to a string value.
|
`tostring` converts its argument to a string value.
|
||||||
|
|
||||||
Explicit type conversions are rarely necessary in Terraform because it will
|
Explicit type conversions are rarely necessary in Terraform because it will
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `transpose` Function
|
# `transpose` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`transpose` takes a map of lists of strings and swaps the keys and values
|
`transpose` takes a map of lists of strings and swaps the keys and values
|
||||||
to produce a new map of lists of strings.
|
to produce a new map of lists of strings.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `trimspace` Function
|
# `trimspace` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`trimspace` removes any space characters from the start and end of the given
|
`trimspace` removes any space characters from the start and end of the given
|
||||||
string.
|
string.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `upper` Function
|
# `upper` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`upper` converts all cased letters in the given string to uppercase.
|
`upper` converts all cased letters in the given string to uppercase.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `urlencode` Function
|
# `urlencode` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`urlencode` applies URL encoding to a given string.
|
`urlencode` applies URL encoding to a given string.
|
||||||
|
|
||||||
This function identifies characters in the given string that would have a
|
This function identifies characters in the given string that would have a
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `uuid` Function
|
# `uuid` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`uuid` generates a unique identifier string.
|
`uuid` generates a unique identifier string.
|
||||||
|
|
||||||
The id is a generated and formatted as required by
|
The id is a generated and formatted as required by
|
||||||
|
|
|
@ -8,6 +8,10 @@ description: |-
|
||||||
|
|
||||||
# `values` Function
|
# `values` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`values` takes a map and returns a list containing the values of the elements
|
`values` takes a map and returns a list containing the values of the elements
|
||||||
in that map.
|
in that map.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@ description: |-
|
||||||
|
|
||||||
# `zipmap` Function
|
# `zipmap` Function
|
||||||
|
|
||||||
|
-> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
|
||||||
|
earlier, see
|
||||||
|
[0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
|
||||||
|
|
||||||
`zipmap` constructs a map from a list of keys and a corresponding list of
|
`zipmap` constructs a map from a list of keys and a corresponding list of
|
||||||
values.
|
values.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue