{"id":134,"date":"2021-01-18T16:20:00","date_gmt":"2021-01-18T16:20:00","guid":{"rendered":"https:\/\/demo.themespiral.com\/trustnews\/?p=134"},"modified":"2021-06-14T01:52:42","modified_gmt":"2021-06-14T01:52:42","slug":"cannot-delete-s3-buckets-using-root-access","status":"publish","type":"post","link":"https:\/\/teza.blog\/index.php\/2021\/01\/18\/cannot-delete-s3-buckets-using-root-access\/","title":{"rendered":"Cannot Delete S3 Buckets using Root Access"},"content":{"rendered":"\n<p>Lately, I have been doing some testings with AWS Elastic Beanstalk and came across this issue where I could not delete the S3 bucket even with my root account. <br><br>It comes up with the message saying <\/p>\n\n\n\n<p><em><code>\"Insufficient permissions to delete bucketAfter you or your AWS admin have updated your IAM permissions to allow s3:DeleteBucket, choose delete bucket\" <\/code><\/em><br><br>The solution is to change the bucket policy. <br><\/p>\n\n\n\n<!--more-->\n\n\n\n<p><br>Select the bucket, go to Permissions tab. <br>Scroll down to Bucket Policy and Edit. <br><br>Locate this bit, and change the Effect from Deny to Allow. This should allow you to delete the bucket again. <br><\/p>\n\n\n\n<p><code><span class=\"has-inline-color has-vivid-purple-color\">{<br>\"Sid\": xxxxxxxxx,<br>\"Effect\": \"Deny\",<br>\"Principal\": {<br>\"AWS\": \"*\"<br>},<br>\"Action\": \"s3:DeleteBucket\",<br>\"Resource\": xxxxxxxxxx<br>}<\/span><\/code><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Cannot delete S3 bucket using root account\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/f8zn6nVXm_4?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Cheers<\/p>\n\n\n\n<p>Teza<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lately, I have been doing some testings with AWS Elastic Beanstalk and came across this issue where I could not delete the S3 bucket even with my root account. It comes up with the message saying &#8220;Insufficient permissions to delete bucketAfter you or your AWS admin have updated your IAM permissions to allow s3:DeleteBucket, choose &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/teza.blog\/index.php\/2021\/01\/18\/cannot-delete-s3-buckets-using-root-access\/\" class=\"read-more\">Read More<span class=\"screen-reader-text\"> &#8220;Cannot Delete S3 Buckets using Root Access&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[81],"tags":[69,20,55],"class_list":["post-134","post","type-post","status-publish","format-standard","hentry","category-cloud","tag-amazons3","tag-aws","tag-cloud-storage"],"_links":{"self":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts\/134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/comments?post=134"}],"version-history":[{"count":3,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts\/134\/revisions"}],"predecessor-version":[{"id":2124,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts\/134\/revisions\/2124"}],"wp:attachment":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/media?parent=134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/categories?post=134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/tags?post=134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}