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:

  1. On S3 console, select the bucket and go to its Properties
  2. Expand Permissions
  3. Click on Edit bucket policy
  4.  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"

    }
  5. Change the "Deny" value to "Allow".
  6. Save and that's it. You can now delete the bucket


Comments

Popular posts from this blog

Remote Desktop to a PC not joined to AD domain

Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine

Windows RRAS VPN configuration when server is behind NAT