How to setup AWS Route53 Alias and CNAME
Solution 1:
Using Route 53, setting up DNS records for your EIP isn't any different than for a regular one.
For your records - you need to set up an A record that points to example.com. Keep in mind that Route 53 will not allow you to have a CNAME record pointing to your root domain (example.com). Another caveat is that, once you create a CNAME record for your subdomain, you cannot associate ay additional records with it. For example, you couldn't use mail.example.com as a CNAME record for your email portal, as well as an MX record.
If you just want to set up www.example.com, and have it point to your EIP, just set up an A record pointing to example.com, and configure a CNAME record to point to www.example.com. Here's what my console looks like:
Note - make sure there aren't any forbidden characters in your string. Sometimes the console will throw an error saying that it cannot add that type of record - usually its because you have copy & pasted, and there's a space in there or some other invisible character.