Hi guys, I am writing a terraform plugin provider. I have a field which, whenever user update it, I have to destroy and re-create the entire resource, do I just simply do the destroy and create in the Update
method? Or I can specify it in some way such that terraform will do this for me (i.e. call the Destroy
follow by Create
method)?
Ah right, we can use planmodifier.RequiresReplace