title: How to use cloudfront for a DNS Failover
body: <p>We were setting up a aws infrastructure with DNS Route53 failover like mentioned in this aws link. </p>
  
  <p><a href="https://aws.amazon.com/blogs/aws/create-a-backup-website-using-route-53-dns-failover-and-s3-website-hosting/" rel="nofollow noreferrer">https://aws.amazon.com/blogs/aws/create-a-backup-website-using-route-53-dns-failover-and-s3-website-hosting/</a></p>
  
  <p>So we have primary ELB and secondary ELB. </p>
  
  <p>But we will lose the functionality if we point primary to cloudfront, because of losing healthcheck functionality.
  So is there a solution if we wants to use cloudfront ? Or do we need to choose any other solution like HAProxy ?</p>