1 Answer
- Newest
- Most votes
- Most comments
0
Hello.
If you access S3 directly, you must also set a bucket policy.
Try setting a bucket policy that allows "GetObject" for S3 as follows:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::your-bucket-name/*"
}
]
}
By the way, if you want to use a custom domain, I recommend using CloudFront and OAC for distribution.
https://aws.amazon.com/jp/blogs/networking-and-content-delivery/amazon-cloudfront-introduces-origin-access-control-oac/
Relevant content
asked 3 years ago
asked 3 years ago
- AWS OFFICIALUpdated 2 years ago
