Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in AWS by (19.1k points)

Amazon only gives you a certain number of static IP address and the local (private) is of each EC2 instance can change when the machine is restarted. This makes creating a stable platform where EC2 instances depend on each other ridiculously hard to use as far as I can tell.

I've searched online a lot about various solutions and so far have found nothing reasonable outside of assigning an elastic IP address on ever EC2 even if it's not public facing. Does anyone have any other good ideas that are actually easy to execute?

See the AWS team's response to question Static local IP:

The internal IP address of EC2 instances is allocated via DHCP. On instance shutdown, or when the DHCP lease expires, the IP address is returned to the general EC2 DHCP pool of addresses available for other instances.

1 Answer

0 votes
by (44.3k points)

1. Use AWS Virtual Private Cloud so that you have complete control over instance addressing. Read about it in the link below:

https://aws.amazon.com/vpc/

2. Usage of Elastic IPs while communicating between two EC2 instances which will resolve to the local address of the instance.

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html

Related questions

0 votes
1 answer

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.2k users

Browse Categories

...