PERL Net::Amazon::S3 BucketAlreadyExists:请求的存储桶名称不可用
my $bucketname = "test";
my $bucket = $s3->add_bucket( { bucket => "$bucketname" } )
or die $s3->err . ": " . $s3->errstr;
运行这段代码给我这个错误。
BucketAlreadyExists:请求的存储桶名称不可用。这 存储桶命名空间由系统的所有用户共享。请选择一个 不同的名称并重试。
该存储桶不存在。我不确定出了什么问题。
谢谢
my $bucketname = "test";
my $bucket = $s3->add_bucket( { bucket => "$bucketname" } )
or die $s3->err . ": " . $s3->errstr;
Running this code gives me this error.
BucketAlreadyExists: The requested bucket name is not available. The
bucket namespace is shared by all users of the system. Please select a
different name and try again.
The bucket does not exist. I am not sure what's wrong.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
S3 存储桶是一个全局命名空间,因此很可能其他人在您获得相同的存储桶之前就已经使用了该存储桶。也有可能由于内部复制延迟或其他此类问题,之前删除的存储桶尚无法重新使用。
在这种特殊情况下,
“test”
是一个非常通用的存储桶名称。我确信每个人和他们的狗都在尝试使用它 - 当我尝试列出它时,我收到AllAccessDisabled
错误。看起来 S3 团队已专门禁用"test"
存储桶,因为太多人尝试使用它作为存储桶名称。因此,简而言之,您需要选择一个唯一存储桶名称 - 没有其他人使用的名称。
S3 buckets are a global namespace, and so it's very possible that someone else took the same bucket before you could get it. It's also possible that due to internal replication delays or other such issues, a previously-deleted bucket is not yet available for re-use.
In this particular case,
"test"
is a VERY generic bucket name. I'm sure everyone and their dog is trying to use it - and when I try LISTing it, I get aAllAccessDisabled
error. It looks like the S3 team has disabled the"test"
bucket specifically because too many people try to use it as their bucket name.So, in short, you need to pick a unique bucket name - one that NOBODY else is using.
不同的AWS账户不能有同名的存储桶。
其他人一定已经创建了“测试”。
Different AWS accounts cannot have buckets of the same name.
Someone else must have created 'test' already.
如果存储桶名称已存在(对于您或其他人),或者如果您尝试创建的存储桶数量超过允许的数量(最大值为 100),您将会收到此错误。
请参阅文档表单了解更多详细信息:
http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html
You'll have this error if the bucket name already exists (for you or for someone else) or if you have attempted to create more buckets than allowed (maximum is 100)
See documentation form more details:
http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html