I have a bucket on s3, and the user is given full access to this bucket.
I can execute the command lsand see the files in the bucket, but downloading them fails:
A client error (403) occurred when calling the HeadObject operation: Forbidden
I also tried to do this by giving the user full S3 permissions through the IAM console. Same problem.
For reference, here is my IAM policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "arn:aws:s3:::*"
},
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::mybucket",
"arn:aws:s3:::mybucket/*"
]
}
]
}
I also tried to add the bucket policy, even making the bucket public, and still have not left ... also, from the console, I tried to set individual permissions on the files in the bucket and received an error saying that I can’t look at the bucket, which is strange , since I was viewing it from the console when a message appeared, and maybe lssomething in the bucket.
EDIT , , . ...
2nd EDIT , , . , .
!