Getting started with Amazon Web services (AWS)

Goal

Your goal in this project is to get familiar with AWS and to learn how to install software on remote Linux box. More specifically, you need to install apache and then mod_wsgi for Python, which is a servlet like interface for Python webpages.

Resources

Each student will be given their own Linux box at Amazon's Web cloud and a special key file needed to remotely login with ssh. You will need the following keywords to figure out how to make all of this happen:

Keywords: yum, install, httpd, apache, mod_wsgi, WSGIScriptAlias

Directories: /etc, /etc/init.d, /etc/httpd/conf.d, /usr/local/www/username

Files: wsgi.conf

Commands: "sudo bash"

Here is the sample Python code you need to have running. Map URL /app to this code:

# hello.py
def application(environ, start_response):
    status = '200 OK'
    output = 'Hello World!'

    response_headers = [('Content-type', 'text/plain'),
                        ('Content-Length', str(len(output)))]
    start_response(status, response_headers)

    return [output]

Deliverables

You must demonstrate your box listening at port 80 with httpd by responding appropriately to URL:

http://ec2-your-machine/app

The browser should display "Hello World!"