S3 Buckets out of control

0

Hello, I am stuck with buckets in a weird state, here are all my attempts:

Deleting

I have a set of old buckets in a really weird state, I am connected with the root user of my account and I want to delete them but impossible.

s3 console with stuck buckets

Properties

I can't even get the list of properties or permissions about these buckets, I get errors about IAM permissions that I am missing but since I am connected with the root user in theory I have all the permissions necessary ? (I even tried with and IAM user with the specific permissions but nothing)

Enter image description here

CLI

With the CLI nothing more, I get these messages:

$ aws s3api list-object-versions --bucket "sagemaker-studio-0000000"
An error occurred (AccessDenied) when calling the ListObjectVersions operation: Access Denied
$ aws s3 rm s3://sagemaker-studio-0000000 --recursive      
fatal error: An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied

I'm out of ideas and don't know what to do to delete theses buckets. Do you have any ideas ?

Thank you

2개 답변
1

You should be able to regain access to your buckets this way - https://repost.aws/knowledge-center/s3-accidentally-denied-access

전문가
답변함 일 년 전
  • Thanks for your reply !

    I was able to delete the bucket that was in error state with the help of the link you provided

    But sadly, as you can see in my previous screenshot, the 3 last buckets that are in insufficient permissions state don't even allow me to see the policies or even the owner of the bucket (I am logged in as the root user) :/

    Enter image description here

0

This could be caused by an Organization Service Control Policy (SCP), that can deny operations/resources to the root user account. You can try the policy simulator to see if that is what is happening.

profile pictureAWS
전문가
kentrad
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠