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

Feature request: add the capability to dump from dict to HCL2 #151

Closed
mattwwarren opened this issue Feb 21, 2024 · 3 comments
Closed

Feature request: add the capability to dump from dict to HCL2 #151

mattwwarren opened this issue Feb 21, 2024 · 3 comments
Assignees

Comments

@mattwwarren
Copy link

Hello! I am working on adding support for manipulating terraform variables with CloudTruth. I'd like to use this library to load a variables.tf file but need to write the file back out after processing it through our template engine. Would you be interested in this contribution? I'm not terribly familiar with Lark so I don't know how feasible this effort might be.

Thanks in advance!

@kkozik-amplify
Copy link
Collaborator

kkozik-amplify commented Mar 6, 2024

Hello @mattwwarren
Just making sure I understand the use case:
you'd like to parse .tf file into python structure, perform some operations on the structure, and then dump the result back into a .tf file?
And thanks for the request

@mattwwarren
Copy link
Author

Yes, your use case is exactly what I hope to do. Specifically, as we parse out variable values, we want to replace those with references to the CloudTruth objects so the user can use our template or terraform provider to pull those values in dynamically.

Thank you!

@kkozik-amplify kkozik-amplify self-assigned this Mar 7, 2024
@kkozik-amplify
Copy link
Collaborator

kkozik-amplify commented Mar 7, 2024

Closing this issue since this is a Duplicate of #23

@kkozik-amplify kkozik-amplify marked this as a duplicate of #23 Mar 7, 2024
@kkozik-amplify kkozik-amplify closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2024
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