- Mais recentes
- Mais votos
- Mais comentários
Hi,
Try attaching the following Policy to your user's group. With this policy, I was able to upload files to the specified bucket AND the access column was being displayed properly. Note: the first "Action" is required to properly display the Access column.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets",
"s3:GetBucketLocation",
"s3:GetBucketPublicAccessBlock",
"s3:GetAccountPublicAccessBlock",
"s3:GetBucketAcl",
"s3:GetBucketPolicyStatus"
],
"Resource": "*"
},
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetObject*"
],
"Resource": [
"arn:aws:s3:::examplebucket/*",
"arn:aws:s3:::examplebucket"
]
},
{
"Sid": "VisualEditor2",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObjectAcl",
"s3:GetObject",
"s3:DeleteObject",
"s3:PutObjectAcl"
],
"Resource": "arn:aws:s3:::examplebucket/*"
}
]
}
Hope this helps!
-randy
Hi Randy - Thanks for your help.
I tried this, and it did cure the "Access" column problem. The proper status, such as "Public" is now displayed. So, progress.
And when I try to upload a file, the blue progress indicator goes to 100%, and says "Successful" -- which it was not doing before -- but then the file does not upload. And there is an error indicated, like this:
https://testify4love.s3-us-west-2.amazonaws.com/maxi_bucket_failures.png
I added your policy to the one I had before. Should I delete the one I had created -- or at least removed it from this user?
Thanks again!
Edited by: mikeh100 on Aug 17, 2019 9:15 PM
Yes, please delete the one you created. Let me know if it works.
-randy
Thanks, Randy. Unfortunately, that didn't seem to change anything. Looking at the details of the failed upload, it says "forbidden". I find I can download, by the way.
OMG I just realized I had the bucket name wrong! I put "mybucket" in the policy when the name was actually "mybucket.com". When I corrected that, your policy worked. Thank you again, Randy!
Edited by: mikeh100 on Aug 18, 2019 1:29 AM
Conteúdo relevante
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há 3 anos
- AWS OFICIALAtualizada há 3 meses