-
Notifications
You must be signed in to change notification settings - Fork 786
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
Render templates from strings e.g. templatestring
function similar to templatefile
#301
Comments
Hey @nitrocode thanks for submitting! To help us maintain a clear separation between opentf and hashicorp's offerings, we're asking that people describe issues that are in other repositories rather than linking those directly. It is also worth mentioning that as an author of a PR to legacy your are permitted under legacy Terraform CLA to resubmit your code elsewhere as well. Of course a prior RFC would be appreciated Thanks! |
Thanks @roni-frantchi . I added some more information above on why it's needed and the previous PRs. If I have time, I'd be happy to contribute the code that I previously submitted. |
templatestring
function similar to templatefile
Hey @nitrocode thank you for this issue. We believe this would be a great addition to OpenTofu and added the corresponding labels. When implementing this, it would be great to have as much reuse of existing code as possible. |
Hey, I would like to work upon this issue. |
Hey @sanskruti-shahu , thank you for your help. I've assigned you to the issue. Please let us know what your estimate on time is so we can unassign the issue at that time if we don't hear back from you and someone else wants to work on it. |
I hope to contribute by end of next week probably. |
Thank you @sanskruti-shahu please reach out on the #dev-general channel on the OpenTofu Slack if you run into trouble. |
Hey, @janosdebugs, I have created a pull request for this issue. Could you please take a look at it? Thanks! |
Context
Suggest an existing issue in legacy Terraform to fix in OpenTF.
I'd like to use
template
from a string instead of a file. At the moment,templatefile()
requires a file to be present on disk prior to plan. If I can instead use a string, then I no longer need a file and my string can be even more dynamic. This is the functionality that we used to have with the original hashicorp/terraform-provider-template. However, that has been deprecated bytemplatefile
with the missing string functionality and never had an arm release which is why the original was forked ascloudposse/terraform-provider-template
. Since this fork provider is a workaround, a new string function would be much more beneficial.A few attempts have been made to PR the
templatestring
function and those have been closed.The text was updated successfully, but these errors were encountered: