Error 522 on AWS S3 Hosted Website


#1

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.


#2

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.


#3

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