Is there a way to tell Pulumi to skip deleting som...
# general
b
Is there a way to tell Pulumi to skip deleting some resources during destroy? I am looking for something like a “retention policy”, to tell Pulumi whether it should delete or retain (ignore) a resource on destroy.
b
You can use the
--target
to specify which resources you want to destroy. You can't say "destroy everything except these resources"
s
Another workaround is removing the resource from Pulumi state, running pulumi destroy, and importing that resource back into state
b
If I had to do this I’d do what Mike said
b
OK, thanks. So basically the answer is no 🙂.
b
That was my surmising as well 🙂