Suppose I spin up a machine in EC2. Every time I stop/start the machine the following things change (reboots are safe--they don't cause these to change):
- public IP address
- public DNS record
- private IP address
- private DNS record
- removes associated elastic IP
How can I reliably connect to the machine if the addresses/DNS records change every time it is started?
Should I stick with EIPs but add a startup script to reassociate it with my instance when it boots?
There's got to be a better way!