Homework 3: Getting Familiar with Cloud Computing

Due: April 10 2019.

This is a hands-on homework, and The main goal of this homework is to become faimilar with the cloud computing by using Amazon's Elastic Compute Cloud (EC2) platform.

The exercise involves a series of steps. Please follow the instructions carefully to execute these steps. Each step provides familiarity with a certain functionality provided by EC2.

You can do this homework in two ways: blindly type the commands we have listed below and trivially complete all the steps of the homework, or use this homework to dig deeper into various features of EC2 and become familiar with cloud computing. The latter will be more beneficial to you in the long run.

You will need security credentials (certificates and keys) to carry out the assignment.

Please turn in a short (1-2 page) report with your observations and output from some of the key steps in this assignment. You will also required to provide an estimate (approximate estimates are OK) on how much your EC2 operations will cost the instructor. Use Amazon's pricing policy and monitoring data to compute your estimates.

In your report, you should clearly mention which EC2 api commands you tried, and All the AMI and instance IDs that you created.

Please remember that Amazon bills for actual cloud usage -- in your case, you will use a free student account with a certain usage limit, so be very careful with the resources you use, and if you are unclear on any aspect, ask us for clarifications.

afety restrictions to student accounts and this warning is no longer applicable.

We may add further explanations on some of these steps to clarify - we will notify the class by piazza if we do so.

Step 0: Obtain EC2 credentials

Step 1: Install EC2 tools

NOTE: If you have issues with EC2 tools, please use the AWS CLI tools intsead. You can down them from here The CLI tools commands are similar but have a slightly different syntax.

You can download and install the tools in the EDlab machines, or on your local machine

Step 2: Create an Instance and record its approximate starting time

In this step, you will start up a new Linux server on the EC2 cloud. A server is refered to as an EC2 instance. To start a server, you need to specify a machine image (think of it as a boot disk). Machine images are called AMI (amazon machine image) in EC2 terminology.

One can create an EC2 instance by specifying an ami-id. But before you create an instance you need to know what kind of ami to use. This is how you would do it