f7e42728b6
Both Destroy and DestroyDeposed are not propagated down the diff stack, meaning that there is no way we can tell at this point if an instance is being destroyed or deposed, so this check would never be used. In this regard, Destroy never runs a diff down the stack at all, and a deposition check is not run until *after* the provider's diff function is called. To answer this question and close it off, we could either determine if a resource is deposed earlier, and propagate that down, or treat deposed resources like full destroy nodes, and not diff them at all (but rather making a diff with the only thing in it being DestroyDeposed flagged). |
||
---|---|---|
.. | ||
acctest | ||
config | ||
copy | ||
didyoumean | ||
diff | ||
encryption | ||
experiment | ||
hashcode | ||
hilmapstructure | ||
logging | ||
mutexkv | ||
pathorcontents | ||
resource | ||
schema | ||
shadow | ||
signalwrapper | ||
slowmessage | ||
structure | ||
validation | ||
variables | ||
wrappedreadline | ||
wrappedstreams | ||
README.md |
README.md
Helper Libraries
This folder contains helper libraries for Terraform plugins. A running joke is that this is "Terraform standard library" for plugins. The goal of the packages in this directory are to provide high-level helpers to make it easier to implement the various aspects of writing a plugin for Terraform.