I’ve been writing a private provider to work around some Terraform limitations, and I am finding the usually complete documentation to be lacking.
Today for example I noticed my provider’s Update is operating on the new desired state instead of the prior state, and thus it tries to remove something that doesn’t exist. I want to understand how my code can get the prior state values to fix the bug.
When I search the web on
schema.ResourceData I find nothing. The only info I can find are the sdk source code comments - where I need to know what I’m looking for beforehand.
Beyond the high level descriptions in the few pages here Home - Plugin Development: SDKv2 - Terraform by HashiCorp, is there an api reference online with more precise description of interface members, some examples, etc?