Error 522 on AWS S3 Hosted Website

I am hosting a static website in AWS S3, I can access the DNS provided by S3 itself but after adding it to Cloudflare DNS settings, typing the domain name in the browser will return an Error 522.

Anyone else had this issue before when setting up AWS S3 website hosting and Cloudflare?

More info:
I have a public read access bucket policy.

Hi @tramkeith_d, that’s an origin error. I’d check your DNS records to make sure you’re pointing to your correct origin IP, check to make sure the origin is not blocking or rate limiting, and if you’re still having issues you may want to check the origin logs for clues.

Thanks but I managed to make it work by creating a CloudFront Distribution.

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.