Allow resource provider to automatically set protect Resource option #15956
Labels
area/engine
Pulumi engine
area/providers
area/resource-options
kind/enhancement
Improvements or new features
Hello!
Issue details
Certain resources like rds.Instance are known by the provider to be special: they are stateful and incorrect handling of deletes or replaces could cause data loss in an improperly configured system. Currently providers have ad-hoc mechanisms such as forceDelete (see pulumi/pulumi-aws#3807) to encode this knowledge, but Pulumi is not aware of these and the experience is suboptimal and confusing. It would be great if providers could tap into a Pulumi-supported mechanism for this such as the https://www.pulumi.com/docs/concepts/options/protect/ option, for example by having an "auto protect" mode that automatically starts off stateful resources as protected.
Affected area/feature
The text was updated successfully, but these errors were encountered: