Offer dry run option for cdk destroy #30972
Labels
@aws-cdk/pipelines
CDK Pipelines library
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p3
Describe the feature
It would be nice to see what the effect of using
cdk destroy
is without actually destroying anything. The ability to see a list of resources which would be destroyed duringcdk destory
perhaps at the same time validating the destroy would work would be useful.Use Case
We are establishing a destroy CI pipeline. As a significantly destructive operation, offering the ability to check what it will do prior to carrying out the destroy action would be very helpful.
Proposed Solution
A dry run would show a list of resources to be destroyed, grouped by resource type and count, but not actually carry out a destroy action on anything. Flag via CLI,
cdk destroy --dry-run
Other Information
No response
Acknowledgements
CDK version used
2.147.3
Environment details (OS name and version, etc.)
Windows 10/latest Ubuntu GitHub actions runner
The text was updated successfully, but these errors were encountered: