Closed davhdavh closed 1 year ago
Wow, thanks for pointing this out. I do admit I don't do a lot of deletes so I'll try and replicate this and see what can be fixed.
Easy way to replicate is to define a variable 'for' plan and apply but not the delete variants. Tf will complain the required variable isnt defined when deleting.
If you edit the Terraform resource while it is in
deleting
state it will try toplan
andapply
instead ofdelete-plan
anddelete-apply
. Editing the cm and deleting thedelete-plan
pod does not update tf files. Deleting the Terraform resource again, will actually delete the children leaving it in a state where it can no longer execute any plans. This makes it pretty impossible to fix a broken tf that didn't properly support destroy.