
Delete S3 bucket created by AWS beanstalk
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:
- Login to your aws consolse, go to s3 storage, select the bucket you would like to delete and click on it
- Now go to ‘Permissions’ tab
- Click on ‘Bucket Policy’
- 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