Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schema: New functions tfvarsencode, tfvarsdecode and exprencode (v1.8) #330

Closed
radeksimko opened this issue Mar 1, 2024 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request

Comments

@radeksimko
Copy link
Member

radeksimko commented Mar 1, 2024

See hashicorp/terraform#34718

Worth noting these are actually terraform provider namespaced functions, unlike the existing core functions.

@radeksimko radeksimko added the enhancement New feature or request label Mar 1, 2024
@dbanck dbanck self-assigned this Mar 27, 2024
@dbanck
Copy link
Member

dbanck commented Mar 27, 2024

We support these functions when the built-in Terraform provider is declared in the required_providers block. This is the preferred way to use these functions, as stated in the docs: https://developer.hashicorp.com/terraform/language/v1.8.x/functions/terraform-encode_tfvars

I raised hashicorp/terraform#34891 to add descriptions for all the functions.

Today, we don't implicitly load a provider schema when you add a namespaced function to your configuration, so declaring the provider first, is the preferred way for functions.

I've checked that everything works as expected, so I'm closing the issue as complete.

@dbanck dbanck closed this as completed Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants