I have a load balanced environment (min nodes 2, max nodes 4).
The DNS CNAME points to the AWS DNS name for the Elastic Beanstalk, e.g...
awseb-e-a-awsebloa-XXXXXXXX-YYYYYYY.eu-west-1.elb.amazonaws.com
My DNS A-record points to the static IP (elastic IP) of the first EC2 instance (I manually associated the EC2 IP address).
This means anyone referencing www.mydomain.com will go through the CNAME and therefore will be load-balanced.
Anyone accessing without the www prefix (mydomain.com) will go through the A-record and hit the first EC2 instance.
My question is, how can I make the A-Record point to the Elastic Beanstalk instead? I don't want to type its current IP address - because that could change, but I'm more than conscious that pointing to a single node isn't great either.