To launch your AWS instance, we will go through 3 steps.
Step 1: Launching your AWS Instance
Registering AWS and choosing the correct instance.
Step 2: Connecting to your AWS Instance
Connecting to your AWS instance
If you don’t already have an AWS account, register one at https://aws.amazon.com
Click on the top left bar “Services -> Compute -> EC2”
Click on the blue button “Launch Instance”
Select “Amazon Linux 2 AMI (HVM), SSD Volume Type”
Choose instance type “t3.small”(In this example I have chosen t3a.medium, later on the benchmark shows that t3.small performs just as well for a much lower price)
Click “Next: Configure Instance Details” at the bottom right of the page
Nothing to change here, so click “Next: Add Storage”
Change the “Size (GiB)” category to 30
Click “Next: Add Tags
In the “Key” input box put “Name” in “Value” put “Pangaea-key”
Click “Next: Configure Security Group”
On the default SSH with port 22, change the “Source” option to “Anywhere” Now you will need to add the following 2 ports:
▪ TCP 6000 ▪ TCP 9000
To add each of them, click “Add Rule”, under type select “Custom TCP Rule”, under “Port Range” put the port number, for “Source” select “Anywhere”. Repeat the process until you’ve added all the ports.
Click “Review and Launch” Ignore warnings such as “your security group is open to the world” or “your instance configuration is not eligible for free tier” In the pop-up window you will need to create a new key pair. Select “Create a new key pair” and then enter a name that you like, for example “Pangaea-key”
Click “Download Key Pair” Click “Launch Instances” Click “View Instances”. Your new instance should be initializing. Wait a few moments for it to get started.
Keep this window open for future reference.
Open a Terminal window on your computer. If you can’t find Terminal, search for it in your applications folder. If you are on a mac, they often hide Terminal inside of the “Utilities” folder within Applications.
If you are on windows, download Putty or Git Bash to allow your computer to SSH into the AWS instance. For instructions on connecting to an EC2 instance using Putty follow the following resource from Amazon: https://docs.aws.amazon.com/quickstarts/latest/vmlaunch/step-2-connect-to-instance.html
Once Terminal is open, use the “
cd” command to change your directory to where the key pair file (Pangaea-key.pem) that you generated is. Hint it may be in your “Downloads” folder.
Enter the command “
chmod 400 Pangaea-key.pem” (this makes your key not publicly viewable).
On Mac, your pem file may have been changed to a .txt file so the correct command on Mac would be
chmod 400 Pangaea-key.pem.txt
Go back to your AWS window where you are viewing your instances, select your new instance (it should be named “pangaea-key”) and click “Connect” on the top bar
In the pop-up window, under the “Example:” header, copy the sample command to connect to your ec2 instance. The command will look something like:
ssh -i "pangaea-key.pem" firstname.lastname@example.org
Now connect to your instance by running the sample command you copied from the “Connect” page in your terminal window.
It may ask you whether or not you want to continue connecting. Type in “yes” and hit enter.
Congratulations! You should be logged into your new AWS instance!
Run the following command to make sure your instance is properly updated:
sudo yum update
Now install the following packages that will be needed to run Harmony by typing:
apt-get install dnsutilsapt-get install tmux
You will be asked to confirm if you would like to download and install these packages. Just press Y to confirm.