我正在尝试使用 cyberduck 连接到我的 S3 存储桶。
我从下拉菜单中选择 S3。在接下来的两个字段中输入服务器名称:{bucket-name}.s3.amazonaws.com 访问密钥 ID 和秘密访问密钥。
存储桶似乎已加载,但当我尝试单击它时,出现以下错误:
GET /?delimiter=%2F&max-keys=1000&prefix HTTP/1.1
Date: Sat, 23 Aug 2014 22:41:08 GMT
Authorization: AWS {My Access Key Id}:{string of seemingly random alpha numeric characters}
Host: {bucket-name}.s3.amazonaws.com:443
Connection: Keep-Alive
User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.4) (x86_64)
HTTP/1.1 403 Forbidden
x-amz-request-id: {request-id}
x-amz-id-2: {string of seemingly random alpha numeric characters}
Content-Type: application/xml
Transfer-Encoding: chunked
Date: Sat, 23 Aug 2014 22:41:08 GMT
Server: AmazonS3
我不知道这个错误是否有用。它告诉我权限配置不正确。我向存储桶添加了一个策略,如下所示:
{
"Id": "{policy id ...",
"Statement": [
{
"Sid": "{Sid... }",
"Action": "s3:*",
"Effect": "Allow",
"Resource": "arn:aws:s3:::{bucket-name...}/*",
"Principal": {
"AWS": [
"arn:aws:iam::{account-id-number...}:root"
]
}
}
]
}
我对 S3 和 AWS 相当缺乏经验,所以可能会犯一些基本的错误/疏忽。
有人能指出可能出了什么问题吗?
更新
由于懒得阅读,我忽略了阅读错误信息之前的错误的第一部分,那里有一个标题:
Listing directory failed (/{directory name}).
Access Denied. Please contact your web hosting service provider for assistance.