How do I manage an AWS EBS backed instance’s IP?

Home»AWS Support Community Forum»How do I manage an AWS EBS backed instance’s IP?

How do I manage an AWS EBS backed instance’s IP?
Reply

Larry W

When I start or stop an EC2 EBS backed instance, the public DNS is always different. I have to make changes to my configuration or assign new IP everytime.

Is there a shorter / automated way?

This discussion contains 1 reply and has 102 views.

Replies
Reply

maxs

AWS EBS backed instances can be stopped to save instance running costs. The only drawback to this is that every time an instance is stopped and started the public DNS is different.

AWS provides Elastic IPs to overcome this problem. The Elastic IP address belongs to the user’s AWS account and can be assigned to any running instance. The advantage of an Elastic IP address is that the IP is constant and once assigned to an instance, the user can access the application running on the instance with the Elastic IP. EIP still suffers from the drawback mentioned above, that when the instance is stopped and started, the EIP will not be assigned automatically.

It is recommended to write a script to assign the EIP to the instance when the instance is started.

You must be logged in to reply to this topic.