We have 2 EC2 instances - one for staging and one for production. They have a fairly similar setup.
Since we need to scale (while still staying on EC2), I want to change the type of the production instance from t2.medium to t2.large. My course of actions would be:
- Stop the machine
- Change the type
- Start the machine
Before doing this for production, I experimented for staging moving t2.micro -> t2.medium -> t2.large -> t2.micro - on all the steps the machine stayed accessible shortly after the change.
The production is lost for SSH whenever I switch it to t2.large. By this I mean that after I change to t2.large, it's not reachable anymore with a response:
ssh: connect to host ****.compute.amazonaws.com port 22: Connection refused
If I change it back to t2.medium - the SSH works again.
What might this unavailability be due to?