This message was deleted.
# general
s
This message was deleted.
w
We recently changed this to use a different word to avoid the confusion - Pulumi will not actually delete the resource from the cloud provider if it was read in with
.get
. Re: marking as not delete, there is an option in the ResourceOptions for any resource that can say
protected: true
which will prevent any attempt to delete the resource until that property is first removed in a separate update.
b
Hello, Just started using Pulumi. I am reading in a set of global/shared resources using .get(). When i execute a destroy command it still labels them as to be deleted. also the resource option { protected: true } does not appear correct. It seems like its supposed to be { protect: true }. None of those prevent it from being listed for deletion on a destroy command though.
Code that results in resources still being flagged for delete, or argument errors
Flagged for delete, even though .get or {protect:true} was used.