4
votes

I understand why AWS leaves a stack if a deploy fails so you can see the error.

But is there a force switch so i can redeploy and have aws delete the stack for me? Otherwise I have to delete it myself.

2

2 Answers

3
votes

Not sure how you are creating CFT stack but if you are using CLI, you can specify --on-failure DELETE option which will delete the stack if the deployment fails.

1
votes

This has happened once in a Buildkite pipeline, and after manually deleting the stack (Status: DELETE_COMPLETE) was able to re-create/update via the pipeline.