- You need to have the route53 domain direct traffic to the ELB. If you have
example.com
and are trying to route that to the load balancer you need to associate the apex with the load balancer.
To do this, go to the route53 tab. Click your hosted zone and go to record sets. then create a new zone and click yes
for alias
You then need to associate the hosted zone with your ELB.
- Now to get the traffic to fail over correctly you need to be running both instances behind the load balancer (preferably in multiple availability zones) and the ELB will take care of the failover.
To do this, go to the elb section of ec2. Click your load balancer and add instances to it.