Is there any way to mark a resource as not deletab...
# general
d
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
Sounds like maybe the new Retain on Delete feature? I’m using this already, it’s very helpful.
d
It’s exactly what I need! Thanks Avi 🙂
p
Great, my pleasure!
d
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
PR approved, and will be included in the release tommorow