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

feat: Store private data (Misc generic XML, private attributes) in Private state #146

Open
kklimonda-cl opened this issue Aug 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kklimonda-cl
Copy link
Contributor

Is your feature request related to a problem?

#141 and #145 handle a problem where during Update() calls some of the resource data that is not managed
directly by terraform is lost.

That implementation unfortunately leads to multiple Read() and List() calls (one per resource) to get existing
data from the server, so it can be then used in Update() for fields not managed by terraform.

Describe the solution you'd like

A better implementation would make use of https://developer.hashicorp.com/terraform/plugin/framework/resources/private-state - during Read() and Create() calls we'd update private state for every managed resource, and then we'd use that during Update() instead of calling Read() again.

@kklimonda-cl kklimonda-cl added the enhancement New feature or request label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant