【发布时间】:2015-09-11 11:14:15
【问题描述】:
我是 AWS 账户所有者,管理员(IAM 和 root 密码 - 不推荐我知道,但有一些依赖于 root pw 的旧应用程序)。我最近添加了一个存储桶策略,该策略随后使存储桶锁定为我无法访问:
$ aws s3 rb s3://<my-bucket> --force
A client error (AccessDenied) occurred when calling the ListObjects operation: Access Denied
Completed 1 part(s) with ... file(s) remaining
remove_bucket failed: s3://<my-bucket>/ A client error (AccessDenied) occurred when calling the DeleteBucket operation: Access Denied
我已经尝试了 CLI 和 AWS S3 控制台,但只收到错误:Sorry! You do not have permissions to view this bucket.
这个存储桶完全是空的,这让我松了一口气,但我需要使用这个特定的名称,但我无法用它做任何事情。
我希望我不是唯一一个经历过这种困境的人。
(PS - 我会发布我使用的 EXACT 存储桶策略,但我使用控制台创建了它,如果我怀疑我输入了错误的某些部分,我无法复制/粘贴它在这里给你...)
亲切的问候,杰夫。
【问题讨论】:
标签: amazon-web-services amazon-s3 aws-cli