We have a subdomain under our company domain for our application: myapp.company.com.
Few years ago the following setup was done
- myapp.company.com points to an elastic IP (done by the company IT)
- elastic IP targets an public internet facing EC2 instance
Now I'm trying to find a way to switch that setup so it make use of a classic load balancer.
I created an internet facing classic load balancer
- is in the security group of the VPC in which the instance is
- targets the instance which is currently reachable through the elastic ip
I'm able visit the web apps on the instance through the load balancer with the public ip defined in the network interface of the load balancer.
After that, I thought a hosted zone would do the trick of routing the calls to myapp.company.com to the load balancer.
So I created a hosted zone
- domain name when creating the hosted zone: myapp.company.com
- added an A record which has the load balancer's dns name as alias target
But the load balancer is not used.