aws / aws/aws-cdk

(cli): introduce a new flag for CloudFormation's `FORCE_DELETE_STACK`

Open
#30,344 5 comments 1 reaction 0 assignees View on GitHub
cli effort/medium feature-request p2 package/tools
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the feature

It would be nice if we could introduce a new flag in the CDK CLI to take advantage of the new [DeletionMode parameter](https://aws.amazon.com/about-aws/whats-new/2024/05/aws-cloudformation-dev-test-cycle-new-parameter-deletestack-api/) with `FORCE_DELETE_STACK` value to make sure that the CloudFormation stack gets destroyed at all costs, bypassing any possible error that may be encountered.

### Use Case

Make the experience of force destroying a stack less annoying.

### Proposed Solution

_No response_

### 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.143.0

### Environment details (OS name and version, etc.)

WSL2 Ubuntu 22.04.3 LTS

Contributor guide

Open the contributing guide

Research direction

Start by tracing the CDK CLI stack-destroy command and the CloudFormation DeleteStack API mentioned in the issue. Identify the existing destroy options and their tests, then add a flag that passes DeletionMode=FORCE_DELETE_STACK; done means the CLI accepts the flag and force-destroys the stack as requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cli, cloud, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.