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

Going from objects to TF file? #34

Open
Babaracus7 opened this issue Apr 5, 2023 · 2 comments
Open

Going from objects to TF file? #34

Babaracus7 opened this issue Apr 5, 2023 · 2 comments

Comments

@Babaracus7
Copy link

Any plans to do the reverse? Go from parsed objects back into Terraform file?

@evoxmusic
Copy link

I'm as well interested 😊

@davydotcom
Copy link
Contributor

This is a bit of an odd request given how TF works. Terraform is not like a yaml or JSON it is technically an interpreted language. This means the parsed result does not convert the other direction. Once it is evaluated it is difficult to translate it back. So if we supported converting an Object graph to TF it would not look the same. I think it should be clear that yes, we could generate tf from an Object graph but no you cannot manipulate an existing TF file and expect the same output.

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

3 participants