It could happens that during the create operation the execution is stopped (for whatever reason) if that happens the pulumi state is partially stored, and also it is marked as lock.
If we want to destroy based on the state we need to remove the lock, we can do that manually removing the content at .pulumi/locks
The idea is to add a parameter --force on destroy, to force remove the locks in case it exists and prevent destroying the resources
It could happens that during the create operation the execution is stopped (for whatever reason) if that happens the pulumi state is partially stored, and also it is marked as lock.
If we want to destroy based on the state we need to remove the lock, we can do that manually removing the content at .pulumi/locks
The idea is to add a parameter
--force
on destroy, to force remove the locks in case it exists and prevent destroying the resources