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

Optionally implement terraform-provider-cue as provider-defined function(s) for Terraform 1.8+ #33

Open
crw opened this issue Mar 6, 2024 · 2 comments

Comments

@crw
Copy link

crw commented Mar 6, 2024

Thank you for supporting the Terraform community with this data provider! If you were using the data provider construct to work around the lack of support in Terraform for external functions, please consider the following new feature of Terraform.

Terraform version 1.8 launches with support of provider-defined functions. It is now possible to implement this functionality as a function, rather than wrap the functionality in a data provider. Provider-based functions have the advantage of a simpler in-line syntax that does not require the data block (or any other resource blocks) to use.

The caveat is that, as provider-defined functions are new to Terraform 1.8, you would need to continue to maintain the current data provider functionality if you wished to continue to support earlier versions of Terraform.

Please see the provider-defined functions documentation to learn how to implement functions in your providers. If you have any questions, please visit the Terraform topic in our official forum.

We greatly appreciate your support of the Terraform community with your contributions. If you do not wish to implement this functionality as a function, please feel free to close this issue. This issue is simply to raise awareness of the new capability. Thanks again!

@dghubble
Copy link
Member

This seems to require switching to the terraform-plugin-framework. Looking at that migration, there is quite a bit of boilerplate and rewriting to use the new library, which makes this unappealing.

@crw
Copy link
Author

crw commented Jun 24, 2024

No worries, we had over 100 projects and issues to notify about the new functionality and were only able to do a high-level review of how much sense it made for each project. Feel free to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants