我创建了一个新的bucket test1,它有两个文件夹upload,download.Below是我附加到用户的策略。我使用aws cli与访问密钥和秘密访问密钥进行连接,并成功地将文档上传到s3://test1/ upload /。当我尝试上传到s3://test1/ upload / folder时,使用cloudberry explorer失败,出现403禁止错误。我使用相同的密钥连接到aws cli和cloudberry,但不确定是什么导致了issue.Can,任何人请帮助这一点。
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "s3:ListAllMyBuckets",
"Resource": "arn:aws:s3:::*",
"Effect": "Allow"
},
{
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Resource": "arn:aws:s3:::test1",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"s3:prefix": [
"",
"/",
"download/",
"download/*",
"upload/",
"upload/*"
]
}
}
},
{
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::test1/download/*",
"Effect": "Allow"
},
{
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject"
],
"Resource": "arn:aws:s3:::test1/upload/*",
"Effect": "Allow"
}
]
}发布于 2017-12-22 16:23:16
你能试试Fiddler进行交通检查吗?为了更好地理解您的请求在哪里遇到了403错误。
让我知道。
https://stackoverflow.com/questions/47913506
复制相似问题