Code examples for Cloud Computing course

This repository contains samples and examples demonstrating cloud resource provisioning and usage for Amazon AWS and Google Cloud Platform (GCP).

Steps

1) Create virtual environment

$ virtualenv venv

$ source venv/bin/activate

2) Install requirements in the virtual environment

$ pip install -r requirements.txt

3) Setup PYTHONPATH

$ export PYTHONPATH=.:$PYTHONPATH

4) Do AWS setup as outlined below

5) Try examples as shown below

AWS setup

1) Sign up for AWS

2) Add AWS IAM user: Login to AWS Dashboard -> My Security Credentials -> Continue to Security Credentials -> Users -> Add User

3) Add permission to the user created: Select user -> Add permissions -> Attach existing policies directly -> Search for "AmazonEC2FullAccess"

4) Do AWS setup in your local account to allow SDK access to AWS. The sample examples will guide you through the setup process. You will be asked to enter aws_access_key_id, aws_secret_access_key, region, and output format. You can find names of AWS regions at the following link:

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html

Examples

1) VM:

2) libvirt:

3) ObjectStores:

4) DynamoDB: