website: Version notes: Add new -> old links to 0.12 language docs (function pages)

This commit is contained in:
Nick Fagerlund 2019-01-16 16:33:57 -08:00 committed by Nick Fagerlund
parent 4a190127b9
commit 2c50808bbb
86 changed files with 344 additions and 0 deletions

View File

@ -8,6 +8,10 @@ description: |-
# `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
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.

View File

@ -8,6 +8,10 @@ description: |-
# `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
returns the original string.

View File

@ -8,6 +8,10 @@ description: |-
# `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.
Terraform uses the "standard" Base64 alphabet as defined in

View File

@ -9,6 +9,10 @@ description: |-
# `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
Base64 encoding.

View File

@ -9,6 +9,10 @@ description: |-
# `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
Base64. This is not equivalent to base64encode(sha256512("test")) since sha512()
returns hexadecimal representation.

View File

@ -9,6 +9,10 @@ description: |-
# `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
Base64. This is not equivalent to base64encode(sha512("test")) since sha512()
returns hexadecimal representation.

View File

@ -9,6 +9,10 @@ description: |-
# `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
the last portion from it.

View File

@ -9,6 +9,10 @@ description: |-
# `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,
returning a string in
[the _Modular Crypt Format_](https://passlib.readthedocs.io/en/stable/modular_crypt_format.html)

View File

@ -9,6 +9,10 @@ description: |-
# `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
given value, which may be a fraction.

View File

@ -8,6 +8,10 @@ description: |-
# `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.
This can be useful if, for example, the string was read from a file that has

View File

@ -9,6 +9,10 @@ description: |-
# `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
of lists.

View File

@ -9,6 +9,10 @@ description: |-
# `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
a given IP network address prefix.

View File

@ -9,6 +9,10 @@ description: |-
# `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
a subnet mask address.

View File

@ -9,6 +9,10 @@ description: |-
# `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.
```hcl

View File

@ -9,6 +9,10 @@ description: |-
# `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
that isn't empty.

View File

@ -9,6 +9,10 @@ description: |-
# `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
that isn't empty.

View File

@ -8,6 +8,10 @@ description: |-
# `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
elements removed.

View File

@ -8,6 +8,10 @@ description: |-
# `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
as one of its elements.

View File

@ -8,6 +8,10 @@ description: |-
# `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
list of maps representing that data.

View File

@ -8,6 +8,10 @@ description: |-
# `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
portion from it.

View File

@ -8,6 +8,10 @@ description: |-
# `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
removed.

View File

@ -8,6 +8,10 @@ description: |-
# `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.
```hcl

View File

@ -9,6 +9,10 @@ description: |-
# `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
a string.

View File

@ -9,6 +9,10 @@ description: |-
# `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
a base64-encoded string.

View File

@ -9,6 +9,10 @@ description: |-
# `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)
that hashes the contents of a given file rather than a literal string.

View File

@ -9,6 +9,10 @@ description: |-
# `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)
that hashes the contents of a given file rather than a literal string.

View File

@ -8,6 +8,10 @@ description: |-
# `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.
```hcl

View File

@ -9,6 +9,10 @@ description: |-
# `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)
that hashes the contents of a given file rather than a literal string.

View File

@ -9,6 +9,10 @@ description: |-
# `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)
that hashes the contents of a given file rather than a literal string.

View File

@ -9,6 +9,10 @@ description: |-
# `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)
that hashes the contents of a given file rather than a literal string.

View File

@ -9,6 +9,10 @@ description: |-
# `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)
that hashes the contents of a given file rather than a literal string.

View File

@ -8,6 +8,10 @@ description: |-
# `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
flattened sequence of the list contents.

View File

@ -9,6 +9,10 @@ description: |-
# `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
given value, which may be a fraction.

View File

@ -9,6 +9,10 @@ description: |-
# `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
to a specification string. It is similar to the `printf` function in C, and
other similar functions in other programming languages.

View File

@ -8,6 +8,10 @@ description: |-
# `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.
```hcl

View File

@ -9,6 +9,10 @@ description: |-
# `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
values according to a specification string.

View File

@ -9,6 +9,10 @@ description: |-
# `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
line in a given multi-line string.

View File

@ -8,6 +8,10 @@ description: |-
# `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.
```hcl

View File

@ -9,6 +9,10 @@ description: |-
# `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
list of strings with the given delimiter.

View File

@ -9,6 +9,10 @@ description: |-
# `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
of the result of decoding that string.

View File

@ -8,6 +8,10 @@ description: |-
# `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.
The JSON encoding is defined in [RFC 7159](https://tools.ietf.org/html/rfc7159).

View File

@ -8,6 +8,10 @@ description: |-
# `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.
The keys are returned in lexicographical order, ensuring that the result will

View File

@ -8,6 +8,10 @@ description: |-
# `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.
If given a list or map, the result is the number of elements in that collection.

View File

@ -8,6 +8,10 @@ description: |-
# `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
language has built-in syntax for creating lists using the `[` and `]`
delimiters. Use the built-in syntax instead. The `list` function will be

View File

@ -8,6 +8,10 @@ description: |-
# `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.
```hcl

View File

@ -8,6 +8,10 @@ description: |-
# `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.
If the given key does not exist, a the given default value is returned instead.

View File

@ -8,6 +8,10 @@ description: |-
# `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.
## Examples

View File

@ -8,6 +8,10 @@ description: |-
# `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
language has built-in syntax for creating maps using the `{` and `}`
delimiters. Use the built-in syntax instead. The `map` function will be

View File

@ -9,6 +9,10 @@ description: |-
# `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
list whose indexes match the corresponding indexes of values in another
list.

View File

@ -8,6 +8,10 @@ description: |-
# `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.
## Examples

View File

@ -9,6 +9,10 @@ description: |-
# `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
hexadecimal digits.

View File

@ -9,6 +9,10 @@ description: |-
# `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
contains a merged set of elements from all of the maps.

View File

@ -8,6 +8,10 @@ description: |-
# `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.
## Examples

View File

@ -9,6 +9,10 @@ description: |-
# `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,
and if so it replaces that segment with the current user's home directory
path.

View File

@ -8,6 +8,10 @@ description: |-
# `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.
## Examples

View File

@ -9,6 +9,10 @@ description: |-
# `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
each occurence with a given replacement string.

View File

@ -8,6 +8,10 @@ description: |-
# `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
cleartext.

View File

@ -8,6 +8,10 @@ description: |-
# `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.
```hcl

View File

@ -9,6 +9,10 @@ description: |-
# `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
containing only the elements that all of the given sets have in common.
In other words, it computes the

View File

@ -9,6 +9,10 @@ description: |-
# `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
from all of the given sets by computing the
[cartesian product](https://en.wikipedia.org/wiki/Cartesian_product).

View File

@ -9,6 +9,10 @@ description: |-
# `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
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

View File

@ -9,6 +9,10 @@ description: |-
# `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
hexadecimal digits.

View File

@ -9,6 +9,10 @@ description: |-
# `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
hexadecimal digits.

View File

@ -9,6 +9,10 @@ description: |-
# `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
hexadecimal digits.

View File

@ -8,6 +8,10 @@ description: |-
# `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
1 to represent the sign.

View File

@ -8,6 +8,10 @@ description: |-
# `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.
```hcl

View File

@ -9,6 +9,10 @@ description: |-
# `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
sorted lexicographically.

View File

@ -9,6 +9,10 @@ description: |-
# `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
given separator.

View File

@ -9,6 +9,10 @@ description: |-
# `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.
```hcl

View File

@ -9,6 +9,10 @@ description: |-
# `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
as a template using a supplied set of template variables.

View File

@ -9,6 +9,10 @@ description: |-
# `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.
```hcl

View File

@ -9,6 +9,10 @@ description: |-
# `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.
In the Terraform language, timestamps are conventionally represented as

View File

@ -9,6 +9,10 @@ description: |-
# `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.
## Examples

View File

@ -8,6 +8,10 @@ description: |-
# `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.
Explicit type conversions are rarely necessary in Terraform because it will

View File

@ -8,6 +8,10 @@ description: |-
# `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.
Explicit type conversions are rarely necessary in Terraform because it will

View File

@ -8,6 +8,10 @@ description: |-
# `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.
Explicit type conversions are rarely necessary in Terraform because it will

View File

@ -8,6 +8,10 @@ description: |-
# `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.
Explicit type conversions are rarely necessary in Terraform because it will

View File

@ -8,6 +8,10 @@ description: |-
# `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.
Explicit type conversions are rarely necessary in Terraform because it will

View File

@ -8,6 +8,10 @@ description: |-
# `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.
Explicit type conversions are rarely necessary in Terraform because it will

View File

@ -9,6 +9,10 @@ description: |-
# `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
to produce a new map of lists of strings.

View File

@ -9,6 +9,10 @@ description: |-
# `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
string.

View File

@ -8,6 +8,10 @@ description: |-
# `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.
## Examples

View File

@ -8,6 +8,10 @@ description: |-
# `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.
This function identifies characters in the given string that would have a

View File

@ -8,6 +8,10 @@ description: |-
# `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.
The id is a generated and formatted as required by

View File

@ -8,6 +8,10 @@ description: |-
# `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
in that map.

View File

@ -9,6 +9,10 @@ description: |-
# `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
values.