File tree Expand file tree Collapse file tree 5 files changed +40
-30
lines changed
v1.10.x/docs/language/functions
v1.11.x/docs/language/functions
v1.12.x/docs/language/functions
v1.8.x/docs/language/functions
v1.9.x/docs/language/functions Expand file tree Collapse file tree 5 files changed +40
-30
lines changed Original file line number Diff line number Diff 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
3537provider::terraform::encode_tfvars({
Original file line number Diff line number Diff 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
3537provider::terraform::encode_tfvars({
Original file line number Diff line number Diff 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
3537provider::terraform::encode_tfvars({
Original file line number Diff line number Diff 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
3537provider::terraform::encode_tfvars({
Original file line number Diff line number Diff 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
3537provider::terraform::encode_tfvars({
You can’t perform that action at this time.
0 commit comments