Custom Provider troubles - inconsistent result for Root resource

A colleague of mine was able to spot the problem - the fix was actually fairly simple.
In code, i used tried to set the Id field of the ResourceData like this:
d.set("id", idString)
Id is however an inherent field of ResourceData, so there is an actual setter for it, obviously
d.setId(idString)
that small mistake causes Terraform to not see the resulting object, because the id is never set, but the id also is the main identifier of the object. Such a small oversight! It’s always the smallest things. My IDE doesn’t understand import via Git-tags, so I couldn’t figure it out that way either. Oh well, maybe it will help someone else!

1 Like