S3 for CloudFront Origin redirect access denied

AWS/Amazon CloudFront

  • error case

403 error occurs when you access S3 for CloudFront origin using CloudFront URL.

  • cause

Misconfiguration of S3 for origin

  • resolution

Right URL : bucket-name.s3.region.amazonaws.com
Wrong URL : s3.amazonaws.com/bucket-name

  • reference

https://repost.aws/ko/knowledge-center/s3-website-cloudfront-error-403 https://docs.aws.amazon.com/ko_kr/AmazonCloudFront/latest/DeveloperGuide/DownloadDistS3AndCustomOrigins.html