My s3 bucket sertting Access
is public
and block public aceess
is off
Now I uploaded the file by aws-web console.
The file is blocked from public.
I check the page here and set
Bucketpolicy is like this below.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": [
"s3:GetBucket*",
],
"Resource": [
"arn:aws:s3:::si12-s3-resource-up",
"arn:aws:s3:::si12-s3-resource-up/*"
]
}
]
}
However ,still the same.
Where the point should I check more?
After uploading the file manually.
comes to each object page and set ACL as public to everyone.
The file can be seen.
SO,,,,in my opinion.
Bucket policy is set but somehow ACL is prioritized or bucket policy is ignored???
Solution
I off the ACL and set
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowPublicRead",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::my-bucket--name/*"
}
]
}
It works, I am not sure why former bucket policy doesn't work
But thank you very much for comment.