I have multiple AWS EC2 instances running, and I use Route 53 for public DNS.
I know that I can point Route 53 DNS records to the public IP address or the public DNS name of an instance. These two values change, however, whenever an instance is started or stopped, so every time an instance is stopped, I need to reconfigure Route 53.
Is there any way to statically link an AWS Route 53 record to an EC2 instance, either by instance name, private IP address, private DNS name, or some other identifier?
Obviously, for the DNS record to work for the public, Route 53 would have to resolve the new DNS record to either a public IP address or a public DNS name. I'm just hoping that Route 53 will substitute the current public IP address for an EC2 instance for whatever static identifier it might use to statically link a DNS record to the EC2 instance.