Allow overriding default removal policy #2973
Labels
@aws-cdk/core
Related to core CDK functionality
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p1
Note: for support questions, please first reference our documentation, then use Stackoverflow. This repository's issues are intended for feature requests and bug reports.
I'm submitting a ...
What is the current behavior?
If the current behavior is a 🪲bug🪲: Please provide the steps to reproduce
The default removal policy for stateful resources is to retain the resource. This means that, for example, buckets will never be deleted.
It would be nice if it was possible to override this default behavior at the stack level and/or at the toolkit level. For example, I'd argue that development stacks would want the default to be "delete".
Reports from users that they don't understand why the CDK leaves all this garbage in their accounts.
The text was updated successfully, but these errors were encountered: