So it means there is no solution for this case?
It will confuse the user, don’t you think so?
maxb
March 30, 2023, 5:15pm
23
Yes, it absolutely will confuse the user, so I don’t regard it as a valid solution, I just wanted everyone to be on the same page about what was actually happening here.
@diPhantxm I believe that the possible solutions are as described:
bendbennett:
You might be able to use the GetChange()
function within the resource Update
function to obtain the behaviour you’re looking for, but this will require writing bespoke code.
Alternatively, migrating to terraform-plugin-framework would allow you to use a map which would remove the issues around ordering associated with using a list, and remove the issues associated with modifying elements resulting in changes to the hash of a set.
Thank you so much for your help. I’ll try this solution
Thank you so much for your help. I think we can consider this issue closed