You can use the following policy to make the objects under S3 bucket publicly readable.
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "AllowPublicRead",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::bucketName/*"
]
}
]
}
To make this, Go to S3
Bucket on AWS Console, click Permissions
and press the Edit
button next to Bucket policy. Copy Json, update “bucketName” with yours.