Amazon s3 从AWS管理控制台创建的S3存储桶无法通过boto访问
我有一个Amazon AWS帐户的两个存储桶。使用boto,我可以看到所有具有以下功能的桶:Amazon s3 从AWS管理控制台创建的S3存储桶无法通过boto访问,amazon-s3,boto,Amazon S3,Boto,我有一个Amazon AWS帐户的两个存储桶。使用boto,我可以看到所有具有以下功能的桶: conn = boto.connect_s3() buckets = conn.get_all_buckets() print buckets 但是,在尝试获取特定存储桶时: # bucket-1 is present in the conn.get_all_buckets() response bucket = conn.get_bucket('bucket-1') 我只能访问由boto自身创建
conn = boto.connect_s3()
buckets = conn.get_all_buckets()
print buckets
但是,在尝试获取特定存储桶时:
# bucket-1 is present in the conn.get_all_buckets() response
bucket = conn.get_bucket('bucket-1')
我只能访问由boto自身创建的内容。当尝试从管理控制台中获取创建的bucket时,我会遇到以下错误:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated
does not match the signature you provided. Check your key and signing method.</Message>
在管理控制台中检查权限时,所有存储桶都具有相同的权限
编辑:使用的Boto版本为1.9b
向s3签名者添加标记,以便getBucketTagging工作
如果没有此选项,生成的签名无效
更新到Boto版本2.9.4解决了问题。您使用的Boto版本是什么?打印Boto。版本1.9b更新到Boto版本2.9.4解决了问题!哇,1.9b相当老了。很高兴它现在对你有用!aws sdk js与boto有什么关系?我错过什么了吗?