Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a single EC2 instance and a single Elastic IP. After the instance is stoped and then re-started, the association between the instance and the IP is lost and I have to manually re-associate.

Is there a way either through the AWS Management Console or programatically from within the instance to do the re-association?

share|improve this question

I was fairly certain that the association stayed, but if it doesn't:

  • Download the EC2 command line API tools (google how to do this for your OS)
  • Set up a simple script to re-associate itself on startup.
share|improve this answer
I am certain that, at least in my case, the IP does not remain associated after a stop/start cycle. I will try what you suggest with the API tools and comment later. – user35042 Feb 19 '11 at 19:18
The IP doesn't remain associated after a stop. They automatically deassociate it, and bill you $0.01 per hour you hold an unassociated IP. – BenGC Jul 8 '11 at 14:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.