Skip to content

Can't delete auto-generated bucket from elasticbeanstalk

0

I have a 10 year old s3 bucket from elastic beanstalk that i haven't used in years, but I still can't delete it. I have deleted everything in beanstalk years ago, but it didn't delete the s3 bucket.

elasticbeanstalk-us-east-1-987229537286

  • yes, i'm looking in the right region
  • yes, i have admin access to *

this one seems like a genuine bug in aws. What should I do?

1 Answer
0
Accepted Answer

S3 buckets created through Elastic Beanstalk have a bucket policy attached to them that prevents deletion. You first need to delete this policy. You can refer to the steps here - https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.S3.html#AWSHowTo.S3.delete-bucket

Once the policy is removed and the bucket emptied, you should be able to delete it.

answered 3 years 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.