mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
Migrating links to new format
This commit is contained in:
@@ -7,10 +7,10 @@ description: >-
|
||||
|
||||
# Function Calls
|
||||
|
||||
> **Hands-on:** Try the [Perform Dynamic Operations with Functions](https://learn.hashicorp.com/tutorials/terraform/functions?in=terraform/configuration-language&utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS) tutorial.
|
||||
> **Hands-on:** Try the [Perform Dynamic Operations with Functions](/terraform/tutorials/configuration-language/functions?utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS) tutorial.
|
||||
|
||||
The Terraform language has a number of
|
||||
[built-in functions](/language/functions) that can be used
|
||||
[built-in functions](/terraform/language/functions) that can be used
|
||||
in expressions to transform and combine values. These
|
||||
are similar to the operators but all follow a common syntax:
|
||||
|
||||
@@ -35,7 +35,7 @@ A function call expression evaluates to the function's return value.
|
||||
## Available Functions
|
||||
|
||||
For a full list of available functions, see
|
||||
[the function reference](/language/functions).
|
||||
[the function reference](/terraform/language/functions).
|
||||
|
||||
## Expanding Function Arguments
|
||||
|
||||
@@ -52,8 +52,8 @@ The expansion symbol is three periods (`...`), not a Unicode ellipsis character
|
||||
|
||||
## Using Sensitive Data as Function Arguments
|
||||
|
||||
When using sensitive data, such as [an input variable](/language/values/variables#suppressing-values-in-cli-output)
|
||||
or [an output defined](/language/values/outputs#sensitive-suppressing-values-in-cli-output) as sensitive
|
||||
When using sensitive data, such as [an input variable](/terraform/language/values/variables#suppressing-values-in-cli-output)
|
||||
or [an output defined](/terraform/language/values/outputs#sensitive-suppressing-values-in-cli-output) as sensitive
|
||||
as function arguments, the result of the function call will be marked as sensitive.
|
||||
|
||||
This is a conservative behavior that is true irrespective of the function being
|
||||
@@ -82,10 +82,10 @@ those it can be helpful to know when Terraform will call them in relation to
|
||||
other events that occur in a Terraform run.
|
||||
|
||||
The small set of special functions includes
|
||||
[`file`](/language/functions/file),
|
||||
[`templatefile`](/language/functions/templatefile),
|
||||
[`timestamp`](/language/functions/timestamp),
|
||||
and [`uuid`](/language/functions/uuid).
|
||||
[`file`](/terraform/language/functions/file),
|
||||
[`templatefile`](/terraform/language/functions/templatefile),
|
||||
[`timestamp`](/terraform/language/functions/timestamp),
|
||||
and [`uuid`](/terraform/language/functions/uuid).
|
||||
If you are not working with these functions then you don't need
|
||||
to read this section, although the information here may still be interesting
|
||||
background information.
|
||||
@@ -104,7 +104,7 @@ both cause the final configuration during the apply step not to match the
|
||||
actions shown in the plan, which violates the Terraform execution model.
|
||||
|
||||
For that reason, Terraform arranges for both of those functions to produce
|
||||
[unknown value](/language/expressions/references#values-not-yet-known) results during the
|
||||
[unknown value](/terraform/language/expressions/references#values-not-yet-known) results during the
|
||||
plan step, with the real result being decided only during the apply step.
|
||||
For `timestamp` in particular, this means that the recorded time will be
|
||||
the instant when Terraform began applying the change, rather than when
|
||||
|
||||
Reference in New Issue
Block a user