Using Cloudflare with Amazon EC2 and load balancers

Arjun Kapoor picture Arjun Kapoor · Oct 11, 2014 · Viewed 17.8k times · Source

I am running my website on AWS.

I have one load balancer for my two web servers. My load balancer doesn't have a static IP address, it has a domain name.

I want my traffic to come only via the load balancer. I am using Cloudflare's DNS instead of Route 53, because that's what the Cloudflare instructions said.

I cannot add the load balancer's IP as an A record because it is dynamic and cannot be added through Cloudflare's DNS panel (Not like Route 53). Help me I am stuck in this situation. No solution is offered by Cloudflare so far.

Has anyone faced the same issue?

Answer

Dmitry Mukhin picture Dmitry Mukhin · Oct 11, 2014