Delete S3 bucket created by AWS beanstalk

Mubbashir Mustafa
Sep 6, 2018 · 1 min read

If you create a beanstalk instance and later on delete it the associated S3 bucket won’t be delete automatically. Also the usual bucket deletion procedure won’t work.

Quick Fix:

  1. Login to your aws consolse, go to s3 storage, select the bucket you would like to delete and click on it
  2. Now go to ‘Permissions’ tab
  3. Click on ‘Bucket Policy’
  4. Scroll to the bottom and change ‘Effect’: ‘Deny’ to ‘Effect’: ‘Allow’

From,

“Sid”: “eb-58950a8c”,
“Effect”: “Deny”,
“Principal”: {
“AWS”: “*”
}

to,

“Sid”: “eb-58950a8c”,
“Effect”: “Allow”,
“Principal”: {
“AWS”: “*”
}

5. Save the policy and now try to delete the bucket, it will be deleted

Mubbashir Mustafa

PHP & JS Developer https://mubbashir10.com

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade