Unable to delete S3 bucket

穿精又带淫゛_ 提交于 2020-01-06 04:56:10

问题


I created a s3 bucket using console, while configuration I removed the default selected user. Now when I am trying to delete the bucket using console it says access denied. I understand I should have removed the user. However when I click on bucket name in permission it show owner: myUserName and bucket policy: no How can I delete it? As I understand there is owner but there is no permission to owner as I removed it while configuration.


回答1:


You can try this:

  1. Create a new Bucket(Do not change anything, keep default).
  2. Go to S3 console where all buckets are listed.
  3. Select newly created bucket.
  4. Click on permissions.
  5. Copy the account id under owner access section.
  6. Go to permissions of old bucket.
  7. Add account using the copied account id.
  8. Now try deleting it.



回答2:


Delete bucket policy and you will be able to delete the bucket



来源:https://stackoverflow.com/questions/45693897/unable-to-delete-s3-bucket

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!