-
Notifications
You must be signed in to change notification settings - Fork 233
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
Representing Tree Like data structure in terraform #112
Comments
Hi @parweza! Unfortunately at this time the provider SDK does not support a recursive schema, since some of the operations it does involve traversing the schema tree and -- as you've seen -- there's no guard for cycles. I'm not sure what's best here with Terraform's current capabilities. If you can share a little more about the underlying system you're working with that might help us come up with some other ideas or "creative" workarounds. As for making this possible in future: this'd be non-trivial because the provider schema must be sent over the plugin RPC channel and the serialization format we are using (soon to be |
Recursive structures is a real requirement. |
I believe the only way to accomplish this now in 0.12 is dynamic type support, linking this to #248 |
This also may be solved by direct support in #261 . Unfortunately, per Martin's comments above, I don't think this will be possible as TF core does not support any sort of recursive type mechanism. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
Representing Tree Like data structure in terraform
Hi,
I am a terraform provider developer and was trying to model following (go representation of data) as terraform resource schema but am not able to do so (terraform validation goes in infinite recursion).
Is it possible to model the following in terraform. if yes , Can you please point me some documentation?
The text was updated successfully, but these errors were encountered: