Unable to delete cloudformation stack

0

Trying to delete unused cloudformation stack from AWS Console and its showing error as "Failed to delete stack" No more error details provided and no event details also printed. Tried to delete associated resources manually and still not working and getting same error. Please help on this

asked 8 months ago1085 views
1 Answer
1

Hi You can try any of the following options or reasons

Check Dependencies: Make sure that there are no resources depending on the stack you're trying to delete. If any resources are still actively being used by other AWS services, you won't be able to delete the stack until those dependencies are removed.

Check for Failed Resources: Look for any resources within the stack that might have failed to create properly. If any resources are in a failed state, you might need to manually delete them first before trying to delete the stack again.

Check Deletion Policies: Some resources in AWS CloudFormation stacks have deletion policies that prevent them from being deleted. For example, you might have a database with a retention policy that prevents it from being deleted. Review your stack's resources and their deletion policies.

Review Stack Events: While you mentioned that no event details were printed, it's worth checking the "Events" tab of the CloudFormation stack to see if there are any clues about why the deletion is failing. Sometimes, the events might provide more context about what's causing the issue.

Permissions and Access: Ensure that your AWS credentials have the necessary permissions to delete all the resources within the stack. Lack of permissions can cause deletion failures.

AWS CLI or SDK: If you're comfortable with using the AWS Command Line Interface (CLI) or an SDK, you might get more detailed error messages that can help you identify the root cause of the deletion failure. You can use commands like aws cloudformation delete-stack and check the output for more information.

Lastly

Contact AWS Support: If you've exhausted all troubleshooting steps and still can't delete the stack, it might be a more complex issue related to the underlying AWS infrastructure. In such cases, it's a good idea to contact AWS Support for assistance. They can provide you with more in-depth guidance and potentially resolve the issue from their end.

Regards Nafiu

Nafiu
answered 8 months ago

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