How to address an EC2 instance from both inside and outside datacenter?

Posted by Alexandr Kurilin on Server Fault See other posts from Server Fault or by Alexandr Kurilin
Published on 2013-06-29T23:33:24Z Indexed on 2013/06/30 4:22 UTC
Read the original article Hit count: 244

I'm trying to find a good way of being able to address my EC2 database instance from both inside and outside of the datacenter. Other EC2 instances need to be able to call into it, and other clients like pgAdmin might need to connect to it from the outside world as well.

It's my understanding that using the internal and external DNS names is sustainable long term as each reboot leads to a change.

I'm thinking of associating an Elastic IP with the instance and giving it an A record (say db1.mydomain.com) which I then will use both within and outside the datacenter. Further instances in the same role will get the same treatment and a DNS record of db2.mydomain.com etc.

Now, is there a cleaner and more stable way of achieving this result? Am going about this the wrong way? Suggestions?

© Server Fault or respective owner

Related posts about networking

Related posts about dns