I created an EC2 instance using Elastic Beanstalk and allocated Elastic IP to it.
All was working fine.
Below are the respective steps we took that resulted in the problem we are facing currently.
- We then decided to release the "Elastic-IP" as we no longer required it.
While the EC2 instance was running we "Released & Dissociated" the Elastic-IP address.
Our application stopped working.
- We then decided to create a new Elastic IP and associate it to the Running EC2 instance.
The application still did not work.
- We then decided to restart the EC2 instance.
When i clicked on stop the EC2 instance it strangely went to terminated state and a second new instance of EC2 spawned up automatically which went to Running state.
So, now we have two instances; one is Running state while other in terminated state.
I have two questions:
Can you please explaining this behavior and why I was not able to simply stop and start a new EC2 instance with the newly created Elastic IP ? What we did wrong and what was the correct approach to doing this ?
How can I go back to the same old state where i had my old Elastic IP and a single running EC2 instance which was created using Elastic Beanstalk running and the application functional.