amazon-web-servicesamazon-ec2

What changes after AWS instance is stopped then restarted


We have received a "instances scheduled for retirement" notification form AWS. It will affect our principle db server. Based on, what I have read, the easiest way is stopping the instance then restart it again.

My understanding is it basically will physically reallocate current instance, which would cause IP change. However, apart from that, what else would be changed.

Currently the instance about to be retired is running as our principle database server. it is connected by both application server (with 20+ web applications) and a slave db server instances.

Connection string between application server and the db instance uses AWS internal computer name (i.e. Data Source=IP-0A882XXX;User ID=username;Password=password;Initial Catalog=dbName;Failover Partner=IP-0A80XXX), which should not be changed after stop/restart. Am I correct?

Is there anything else I should be aware of? such as Security, Firewall Settings, etc.?

Could you point me to a check list?


Solution

  • Stopping and starting an EBS boot EC2 instance is similar to rebooting it with these major exceptions:

    I wrote the following article that goes into more detail and provides a list of all the finer points to consider:

    Rebooting vs. Stop/Start of Amazon EC2 Instance - Alestic.com

    The internal EC2 DNS name for your instance matches the internal IP address, so it will change on stop/start, and will need to be updated on your application servers.

    You can use the following trick to not have to modify clients when the db server is moved:

    The EC2 DNS server returns the internal IP address of the instance when queried from another EC2 instance in the same region.

    I wrote the following article that goes into detail on how to do this and why it works:

    Using Elastic IP to Identify Internal Instances on Amazon EC2