-
Notifications
You must be signed in to change notification settings - Fork 0
UsingEC2
This page explains how to provision and set up an Amazon EC2 server to run the CloudCoder webapp.
First, you'll need to create an Amazon Web Services account. The good news is if you are creating a new account, you are eligible to receive an EC2 micro instance for 1 year for free. Log into the AWS console. Click on the EC2 link: this will take you to the EC2 console.
The server you use to run the CloudCoder webapp needs to have the following ports open:
- 22 (SSH)
- 443 (HTTPS)
- 47374 (connections from CloudCoder builder servers)
You will need to configure a security group so that these ports are open. Click on the Security Groups link in the EC2 console. Click on the Create Security Group button. Call it "cloudcoder". Choose "No VPC". The dialog should look something like this:
Click Yes, create. Click the Inbound tab. The Create a new ruleG combo box allows you to choose inbound ports to open. Choose each of the following and click Add Rule to add them:
- SSH (22)
- HTTP (443)
Then, choose Custom TCP rule. Enter 47374 in the Port range box, and leave the Source unchanged ( 0.0.0.0/0 ). The tab should look something like this:
Click Add Rule. At this point, the rule list on the right-hand side of the tab should look like this:
Now, click Apply Rule Changes. (It is below the Add Rule button.)
Click on the Instances link. Then, click Launch Instance. Choose Classic Wizard and click Continue. This will bring you to a dialog in which you can choose which operating system to use. Choose Ubuntu Server 12.04.1 LTS. Make sure 64 bit is selected. The dialog should look like this:
Click Select (next to Ubuntu Server 12.04.1 LTS) to continue.
One the next wizard page, choose "T1 Micro" as the instance type. You can select an availability zone that is geographically close to you, or use the default:
Click Continue.
On the Advanced Instance Options and Storage Device Configuration pages, just keep the default options and click Continue.
On the "Add tags to your instance" page, just click Continue.
One the Create key pair page, you can create a new key pair, or use an existing one. You can choose the name cloudcoder as the name of the key pair. Important: if you create a key pair, save the downloaded key pair file in a place where it will be safe, and where you will be able to access it in the future. The key pair file is what will allow you to log into the instance. Click Continue when you have selected a key pair.
On the Configure firewall page, choose the cloudcoder security group that you created earlier:
For more info (demo server, exercise repository, contributing to cloudcoder, etc): cloudcoder.org
