Posts

Showing posts from November, 2016

Amazon: Delete bucket created by Elastic Beanstalk

I tested Beanstalk once and found it not suitable for my requirements, so I decided to terminate it right away. However, it had created an S3 bucket that persisted. I tried manually deleting the bucket but it gave me an 'Access Denied' error, which was odd because I had full permissions on it. After some research, I found this quick fix: On S3 console, select the bucket and go to its Properties Expand Permissions Click on Edit bucket policy  Scroll down to where it says: { "Sid": "eb-58950a8c-feb6-11e2-89e0-0800277d041b", "Effect": "Deny", "Principal": {                 "AWS": "*"             }, "Action": "s3:DeleteBucket", "Resource": "arn:aws:s3:::elasticbeanstalk-ap-southeast-1-662143823546" } Change the "Deny" value to "Allow". Save and that's it. You can now delete the bucket