Skip to content

Commit 75c2ac9

Browse files
committed
address PR feedback
1 parent eeeab84 commit 75c2ac9

File tree

5 files changed

+40
-30
lines changed

5 files changed

+40
-30
lines changed

content/terraform/v1.10.x/docs/language/functions/index.mdx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ in the Expressions section.
2424

2525
# Provider-defined Functions
2626

27-
The Terraform language does not support _user_-defined functions.
28-
However [providers can implement functions](/terraform/plugin/framework/functions)
29-
which users can use.
30-
31-
The language requires such functions to use a prefix `provider::<local-name>::`
32-
where `<local-name>` corresponds with an entry in `required_providers` block.
27+
You cannot define your own functions in the Terraform configuration language, but
28+
you can develop your own providers that expose functions. Refer to
29+
[Provider-defined functions](/terraform/plugin/framework/functions)
30+
for information about defining functions in custom providers.
31+
32+
When using a provider-specific function, add the `provider::<local-name>::` where
33+
`<local-name>` corresponds with an entry in the `required_providers` block.
34+
The following example calls the `encoode_tvfars` function in the `terraform` provider:
3335

3436
```hcl
3537
provider::terraform::encode_tfvars({

content/terraform/v1.11.x/docs/language/functions/index.mdx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ in the Expressions section.
2424

2525
# Provider-defined Functions
2626

27-
The Terraform language does not support _user_-defined functions.
28-
However [providers can implement functions](/terraform/plugin/framework/functions)
29-
which users can use.
30-
31-
The language requires such functions to use a prefix `provider::<local-name>::`
32-
where `<local-name>` corresponds with an entry in `required_providers` block.
27+
You cannot define your own functions in the Terraform configuration language, but
28+
you can develop your own providers that expose functions. Refer to
29+
[Provider-defined functions](/terraform/plugin/framework/functions)
30+
for information about defining functions in custom providers.
31+
32+
When using a provider-specific function, add the `provider::<local-name>::` where
33+
`<local-name>` corresponds with an entry in the `required_providers` block.
34+
The following example calls the `encoode_tvfars` function in the `terraform` provider:
3335

3436
```hcl
3537
provider::terraform::encode_tfvars({

content/terraform/v1.12.x/docs/language/functions/index.mdx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ in the Expressions section.
2424

2525
# Provider-defined Functions
2626

27-
The Terraform language does not support _user_-defined functions.
28-
However [providers can implement functions](/terraform/plugin/framework/functions)
29-
which users can use.
30-
31-
The language requires such functions to use a prefix `provider::<local-name>::`
32-
where `<local-name>` corresponds with an entry in `required_providers` block.
27+
You cannot define your own functions in the Terraform configuration language, but
28+
you can develop your own providers that expose functions. Refer to
29+
[Provider-defined functions](/terraform/plugin/framework/functions)
30+
for information about defining functions in custom providers.
31+
32+
When using a provider-specific function, add the `provider::<local-name>::` where
33+
`<local-name>` corresponds with an entry in the `required_providers` block.
34+
The following example calls the `encoode_tvfars` function in the `terraform` provider:
3335

3436
```hcl
3537
provider::terraform::encode_tfvars({

content/terraform/v1.8.x/docs/language/functions/index.mdx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ in the Expressions section.
2424

2525
# Provider-defined Functions
2626

27-
The Terraform language does not support _user_-defined functions.
28-
However [providers can implement functions](/terraform/plugin/framework/functions)
29-
which users can use.
30-
31-
The language requires such functions to use a prefix `provider::<local-name>::`
32-
where `<local-name>` corresponds with an entry in `required_providers` block.
27+
You cannot define your own functions in the Terraform configuration language, but
28+
you can develop your own providers that expose functions. Refer to
29+
[Provider-defined functions](/terraform/plugin/framework/functions)
30+
for information about defining functions in custom providers.
31+
32+
When using a provider-specific function, add the `provider::<local-name>::` where
33+
`<local-name>` corresponds with an entry in the `required_providers` block.
34+
The following example calls the `encoode_tvfars` function in the `terraform` provider:
3335

3436
```hcl
3537
provider::terraform::encode_tfvars({

content/terraform/v1.9.x/docs/language/functions/index.mdx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ in the Expressions section.
2424

2525
# Provider-defined Functions
2626

27-
The Terraform language does not support _user_-defined functions.
28-
However [providers can implement functions](/terraform/plugin/framework/functions)
29-
which users can use.
30-
31-
The language requires such functions to use a prefix `provider::<local-name>::`
32-
where `<local-name>` corresponds with an entry in `required_providers` block.
27+
You cannot define your own functions in the Terraform configuration language, but
28+
you can develop your own providers that expose functions. Refer to
29+
[Provider-defined functions](/terraform/plugin/framework/functions)
30+
for information about defining functions in custom providers.
31+
32+
When using a provider-specific function, add the `provider::<local-name>::` where
33+
`<local-name>` corresponds with an entry in the `required_providers` block.
34+
The following example calls the `encoode_tvfars` function in the `terraform` provider:
3335

3436
```hcl
3537
provider::terraform::encode_tfvars({

0 commit comments

Comments
 (0)