Access denied using cyberduck or s3 Browser to upload object into s3 bucket

0

Hi there,

No matter what I do I cannot upload any object to an s3 bucket and I have the right permissions. I have tried playing around with the permissions and then ended up giving up and allowing all s3 permissions.

I am using Cyberduck or S3 browser to upload documents, for certain reasons I cannot upload files straight to s3 in the browser.
Below is the JSON that is used.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:",
"Resource": "
"
}
]
}

I really don't know why it will give me 'access denied' whenever I try to upload.

Thanks

已提問 5 年前檢視次數 1337 次
1 個回答
0

Hi,

Below is the sample minimal IAM policy you may use to provide permissions to the bucket:
[code]
{
"Statement": [ {
"Effect": "Allow",
"Action": ["s3:ListBucket", "s3:GetBucketLocation"],
"Resource": "arn:aws:s3:::your_bucket_name",
"Condition": { }
}, {
"Effect": "Allow",
"Action": ["s3:PutObject", "s3:GetObject","s3:DeleteObject"],
"Resource": "arn:aws:s3:::your_bucket_name/*",
"Condition": {}
} ]
}
[/code]

已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南