Support DeletionPolicy-like functionality
Hello!
- Vote on this issue by adding a 👍 reaction
- If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)
Issue details
Per @flostadler in Cloud Formation there's several resources that support https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html DeletionPolicy to control how to handle snapshots, which is very useful, but is currently unclear how this maps to Cloud Control and also how to achieve the same effect with the native provider.
Also: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html
Affected area/feature
DeletionPolicy seems to be missing in CloudControl completely. Another use case for this is deleting an S3 bucket that has items in it.
The AWS classic provider supports this with the forceDestroy flag (https://www.pulumi.com/registry/packages/aws/api-docs/s3/bucketv2/#forcedestroy_nodejs)