How to delete a cloud formation stack in DELETE_FAILED status?

0

I have a stack that will not delete.

It has a custom resource that failed creation. I went through the steps here to delete the custom resource and the custom resource deleted properly.

Later I tried to delete the stack. It went into the DELETE_IN_PROGRESS state and all the resources were deleted. It then hung for about 40 minutes and finally changed state to DELETE_FAILED with no other information.

If I try to delete again it goes into the state DELETE_IN_PROGRESS and about 40 minutes later returns to the state DELETE_FAILED. Since all resources are already deleted it does not present a list of resources to retain.

I have tried recreating some resources. But deleting the stack still hangs for 40 minutes and fails.

Has anyone found a way around this problem? We only have a basic support account are are unable to create a technical support issue and paying the several hundred dollars for a single month of support seems a bit excessive. Has anyone been able to get Amazon to delete a stack like this with only a basic support account?

asked 2 years ago981 views
1 Answer
0

Answering based from the previous post: https://repost.aws/questions/QUMgNTrrY-TNq96WhqEB4AIA/how-delete-a-cfn-stack-delete-failed-internal-error

A couple options:

If you can see the stack and the resources, you could recreate the resources with the same logical resources and then try deleting again. This may give you more options than what you're seeing above.

For technical support from AWS, you could sign up and then cancel when the case is closed - this may be a prorated charge as well. However, there is a minimum of 1 month for the charge. Developer Support costs only $29 a month though.

Link -- https://aws.amazon.com/premiumsupport/faqs/

profile pictureAWS
SUPPORT ENGINEER
answered 2 years ago
  • It is a stack with 131 resources so recreating will be time consuming. And unfortunately support costs a maximum of $29 or 3% of your monthly charges. 3% of our monthly charges is well above $29.

    I was hoping that someone had found another solution. But I will probably have to end up recreating the resources and trying again. And maybe signing up for one month of developer support.

    I do thank you for responding!

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions