CloudFlare giving error 522 without HTTPS

Solution 1:

check your Inbound firewall rules for ec2 - make sure port 80 / 443 are exposed.