JupyterHub on AWS at MHC - mtholyoke/JupyterHub-on-AWS GitHub Wiki

JupyterHub on AWS at MHC

Instructions for creating virtual machines to use as JupyterHubs in AWS.

Additional information can be found here:

Create an AWS account

Link AWS account to an AWS Organization (MORE TO COME)

Log on to AWS

Search for EC2 service & select it

Consider adding a star to mark as favorite

Select Launch instance

Name the VM

Select Application and OS Image

Select Instance type

Choose Key pair

If you have already set up a key pair, select it using the drop down.

If not, use the following steps to create one.

When you click Create key pair a key with the name and details you specified will be automatically downloaded.

Select the desired key pair name.

In Network settings create or select security group

Create security group

The first time you launch a virtual machine, you will have to create a security group. Check all three boxes (SSH, HTTPs, HTTP).

Next, press the Edit button at the top of the security group section.

Name the security group.

Change HTTPs options.

Change HTTP options.

What you should see when you are done:

Select storage

EXTRA: Advanced details for User data

Expand Advanced details to reveal extra settings.

Scroll to the bottom to edit User data.

Use the following general code to install TLJH automatically when the instance is created. More info here.

The code below can be copied and pasted.

#!/bin/bash
curl -L https://tljh.jupyter.org/bootstrap.py \
  | sudo python3 - \
    --admin <admin-user-name>

Remember to add your own name to replace the content in <>.

The code below can be copied and pasted.

#!/bin/bash
curl -L https://tljh.jupyter.org/bootstrap.py \
  | sudo python3 - \
    --admin Prof_G

Launch the instance

When successful click the View all instances button.

You may have to refresh the list.

You should see the instance with the given name in the list. It may take some time to be fully available.

When the status check is green you can access the instance.

⚠️ **GitHub.com Fallback** ⚠️