https://pulumi.com logo
Title
d

dry-autumn-28966

03/08/2022, 6:53 PM
Is there any way to mark a resource as not deletable during a destroy operation? I’m having a problem when using the
azure-native-provider
with dbforpostgresql
Configuration
resources. Those resources just update the configuration of the postgres instance and visibly cannot be deleted.
p

powerful-room-57148

03/08/2022, 7:10 PM
Sounds like maybe the new Retain on Delete feature? I’m using this already, it’s very helpful.
d

dry-autumn-28966

03/08/2022, 7:18 PM
It’s exactly what I need! Thanks Avi 🙂
p

powerful-room-57148

03/08/2022, 7:19 PM
Great, my pleasure!
d

dry-autumn-28966

03/08/2022, 8:55 PM
Just in case anyone reads this and attempt to use RetainOnDelete with the Go SDK. There is currently a bug in the SDK where this specific option is not propagated to the state file and therefore, is not applied. https://github.com/pulumi/pulumi/pull/9147
e

echoing-dinner-19531

03/08/2022, 9:18 PM
PR approved, and will be included in the release tommorow