I have multiple EC2 instances running in the same VPC (and thus same region). Is there a way that I can resolve those EC2 instances uniquely for SSH access? Let's assume that I am not using elastic IPs for these instances, so the assigned IP for each instance will change over time.
I was contemplating setting up a unique subdomain for each instance, but then I realize I would still need a permanent public IP in the A record unique to each instance.
E.g.
ssh user@host1.mydomain.net
ssh user@host2.mydomain.net
ssh user@host3.mydomain.net
For a web server one could reference the same IP for each host, yet still internally direct the request to correct instance based on the DNS name. Is this possible with SSH also?
Is there a different way to get this working? AWS only gives us 5 elastic IPs per region.