`refusing to delete protected resource`, how can i...
# general
w
refusing to delete protected resource
, how can i override it or remove the protection? I am trying to do
pulumi destroy
because
pulumi up
is failing to update the vpc, due to another error.
b
can you do
pulumi state unprotect
or
pulumi state  delete --force
g
pulumi state unprotect
is your best option here. https://www.pulumi.com/docs/reference/cli/pulumi_state_unprotect/
w
cool, thanks!
pulumi state unprotect
was exactly what I was looking for, but didnt expect it be hidden under
pulumi state
. But now in hindsight it makes sense that way.
Would be cool if the error message mentioned that command.
b
@wonderful-dog-9045 can you open an issue for this?
We should make that clear in the error message
w
yup, will do 🙂
b
thanks!