Setting up cloudflare records to point to AWS global accelerator?

852 Views Asked by At

I set up a global accelerator in front of an ELB for EC2 instance. Accelerator gave me 2 static IP to use for DNS. Currently my DNS A record points to my EC2 public IP. When I remove this record and added the 2 A record with the GA IP's I get a 522 error on the site. What am I doing wrong? AWS support said all should be good and I should ask cloudflare support which is awful and refer me back to AWS. now what?

1

There are 1 best solutions below

0
On

What worked for me was to add a CNAME on Cloudflare to the AWS Global Accelerator. In addition set SSL to "flexible" in Cloudflare Page Rules for the entire domain/subdomain if your Origin server isn't setup for 443/SSL.