https://pulumi.com logo
Title
m

mysterious-australia-14256

05/19/2020, 9:40 AM
Hello. Is there a way to prevent "pulumi destroy" from removing a resource group that isn't empty? For example say I have a Pulumi project that creates a resource group and some resources in it. A user then comes along and manually creates another resource in it. Is it possible to allow "pulumi destroy" to remove the resources it created but not the resource group which now contains additional things?
b

better-rainbow-14549

05/19/2020, 10:37 AM
you could add protect: true to the customresourceoptions
but i dont know of a general fix
c

colossal-room-15708

05/19/2020, 1:19 PM
That would require a custom resource component where you control the
delete
operation I'd say
m

mysterious-australia-14256

05/19/2020, 1:31 PM
thanks both, I'll dig in to those suggestions