pulumi-aws-native icon indicating copy to clipboard operation
pulumi-aws-native copied to clipboard

Support DeletionPolicy-like functionality

Open t0yv0 opened this issue 2 years ago • 1 comments

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

t0yv0 avatar Apr 17 '24 13:04 t0yv0

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)

flostadler avatar Apr 18 '24 13:04 flostadler