-
Notifications
You must be signed in to change notification settings - Fork 7
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
Updates to resource meraki_networks
seems to trigger updates to resources using its output.
#181
Comments
Hi @finkjordanj , Thank you for the information shared in this issue. However, I’d like to better understand the behavior you're describing and how it might be managed in my case. Could you provide more details or additional examples to clarify how to handle this situation in Terraform? It would also be helpful if you could explain more thoroughly how Terraform manages dependencies and recomputation of resources, particularly when only metadata like notes is being updated, rather than actual network or infrastructure configurations. If you'd prefer, we can set up a session to discuss it further and explore potential solutions together. Please feel free to contact me at [email protected] to coordinate a call or session. Thanks in advance for your time and help! |
Here is a diagram of what we are attempting. Ill reach out to your email to go over additional details as needed. |
After a little more digging with a co-worker we think we found what is causing this. Due to us initially trying to use the id as the output/input for other resources in the module, the current setup doesn't have a planmodifiers to usestatefor unknown on the ID but does on the network_id. I think this was/is confusing on why this is separated and have different behaviors. Since the ID was a read only value I'm assuming either the planmodifier check never really applies. |
Prerequisites
Describe the bug
When updating the notes of the meraki_networks resource
Any subsequent resources I leverage the output of the network_id (id) output appears to be triggering a recompute of all the resources for the network_id input.
Expected behavior
If the only update to the meraki_networks is the notes, then that resource would update, while all the subsequent using that ID as its input, will remain unaffected.
Screenshots
This is the change showing my update to in theory just the notes on the resource.
This shows my terraform plan out showing all my nested resources in my module having to do computed update?
Debug
The major debug that appears to be related is most the resources give this output or similar to their specific resource in question.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: