Is there any way to mark a resource as not deletable during a destroy operation? I’m having a problem when using the
resources. Those resources just update the configuration of the postgres instance and visibly cannot be deleted.
03/08/2022, 7:10 PM
Sounds like maybe the new Retain on Delete feature? I’m using this already, it’s very helpful.
03/08/2022, 7:18 PM
It’s exactly what I need! Thanks Avi 🙂
03/08/2022, 7:19 PM
Great, my pleasure!
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
03/08/2022, 9:18 PM
PR approved, and will be included in the release tommorow