-
Notifications
You must be signed in to change notification settings - Fork 3
5. Managing the instance
Do this from the AWS dashboard. This will reset the IP address. I think you can also downgrade to t2.micro (free tier for 1st year) or maybe hibernate.
If it hangs, mine hangs all the time when it runs out of RAM. Go to the EC2 Dashboard and then go to instances. You'll see a drop down which will let you reboot the instance.
Upgrading is easy. Detailed instructions here and steps below. https://outpw.github.io/tutorials/JupyterHubSetup.html
Steps:
- After logging into AWS, navigate to the AWS Management Console and click EC2. On your EC2 Dashboard, click Instances to view your instance.
- Stop (not terminate) your instance if it is running by clicking on then instance and then Actions > Manage Instance State > Stop.
- Wait for it to fully stop.
- Go to Actions > Instance Settings > Change Instance Type
- Change to something else
- Restart instance. Actions > Manage Instance State > Start
Note I have had trouble installing TLJH on anything except t2.micro. It installs but my servers won't spawn. So I have to install on t2.micro and then upgrade.
The IP address will change every time you stop the instance unless you associate an Elastic IP with the instance. It is easy to do. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#using-instance-addressing-eips-allocating Basically, go to the EC2 dashboard, select Elastic IP from the left nav bar, and then allocate an Elastic IP from Amazon's public pool. Then associate that IP with one of your instances. You don't need to fill in the private IP part.