Amazon EBS EC2 instance IP changed on restart

I am running an EBS backed Amazon EC2 Linux instance. For some maintenance purposes I shutdown the machine and started it again. However, my machine IP has changed now. This affects my services since the server won't be reachable now.

Can this be repaired. Can I assign the same IP to the machine again?

Any help is really appreciated.

Thanks.

P.S - The maintenance was that I shut down the machine so I could create and AMI out of it to share it with another user.

Answers


You should give the EC2 box an Elastic IP, otherwise when you restart the machine it'll have a new IP. You can reuse this IP on different EC2 boxes but it will mean you have a constant IP to reference so say you lose your EC2 box and have to restore again from a EBS, it will still have the allocated static IP.


Need Your Help

Android Studio removes details from AppManifest

android android-studio

I am a intermediate Java developer starting to look into developing Android apps. I am following the tutorials that Google provides, but I am running into an issue where Android Studio is removing ...

Talend Execution Fails to Generate Code

java java-8 talend

I'm trying to build the first example job from talend (http://www.talendforge.org/tutorials/tutorial.php?language=english&idTuto=1#Action)

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.