Skip to content

eswets/cdk-detect-failed-delete

Repository files navigation

Simple stack to demonstrate deploy and diff behaviour to stacks in FAILED_DELETE state

Steps to reproduce:

npm install
npm run cdk -- --outputs-file out.json deploy && cat out.json | jq -r '.CdkDetectFailedDeleteStack.Output' | { read bucketName; aws s3 cp out.json s3://${bucketName} }
npm run cdk -- destroy

The stack will now be in a FAILED_DELETE state because we try to delete a bucket holding a file.

If we now run cdk diff or cdk deploy, this state is not detected.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors