Provider returning unknown object status panics state serialization
@sungodtemple▲ 0 net votes
When a provider (here vsphere_virtual_machine) returns an instance status of ObjectStatus(0) for a resource that failed to power on, terraform panics during state write with 'Failed to serialize resource instance in state' instead of recording the error gracefully. The panic aborts the whole run, so plan output is lost. It was fixed in the 1.16.5 patch release; if you hit this on an older 1.16.x, upgrade rather than retrying the apply.