2

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?

user35042
  • 2,761
  • 12
  • 39
  • 62

1 Answers1

0

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.
chrism2671
  • 2,719