Unable to delete S3 bucket

0

Hello,

I have an S3 bucket that appears to be stuck in a state that makes me unable to completely delete it or recreate it. I cannot update my CloudFormation stack now either because it thinks it was able to delete the bucket but then it fails to recreate it because it already exists. It looks like a bug to me.

The bucket is listed in the UI but attempting to delete it manually does nothing from a user's perspective. I see that an HTTP request returns 404 when I attempt to delete it. The bucket cannot be viewed either as it gives the error "Data not found". It does not seem to be assigned to a region either anymore because the value is blank in the list of buckets.

I have temporarily worked around the problem by creating a new bucket with a different name.

How can we fix this problem? I realize it is hard to help without knowing exactly which bucket it is but how do we exchange information without sharing it with everyone?

Thank you!

sldayo
asked 5 years ago518 views
2 Answers
0

The bucket disappeared on its own eventually.

sldayo
answered 5 years ago
0

To help you solve your problem, here are the possible solutions you can do : 1- Make sure to empty all objects content data that can be found on the bucket(files,folders,...etc) Before attempting to delete it. 2- Inspect the CloudFormation stack resources to ensure that the bucket is not referenced or used by any other resources. If there are dependencies on the bucket, you may need to update or remove them before attempting to delete the stack. 3-Make sure that you have the necessary permissions and ownership of the bucket. Check the bucket's access control policies, IAM roles, and user permissions to ensure that you have the required privileges to delete the bucket.

answered 20 days 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