Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offer dry run option for cdk destroy #30972

Open
2 tasks
cknight opened this issue Jul 29, 2024 · 1 comment
Open
2 tasks

Offer dry run option for cdk destroy #30972

cknight opened this issue Jul 29, 2024 · 1 comment
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

Comments

@cknight
Copy link

cknight commented Jul 29, 2024

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 during cdk 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

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.147.3

Environment details (OS name and version, etc.)

Windows 10/latest Ubuntu GitHub actions runner

@cknight cknight added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jul 29, 2024
@github-actions github-actions bot added the @aws-cdk/pipelines CDK Pipelines library label Jul 29, 2024
@khushail khushail added investigating This issue is being investigated and/or work is in progress to resolve the issue. p3 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Jul 29, 2024
@khushail
Copy link
Contributor

Hey @cknight , thanks for reaching out. It sounds a good-to-have feature in CDK Destroy command. However I am marking this feature as P3 which essentially means our team won't be able to work on it immediately. If you or anyone from the community would like to take this up, please feel free to proceed, by following our contribution guide.

@khushail khushail removed the investigating This issue is being investigated and/or work is in progress to resolve the issue. label Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants