Skip to content

amaniduncker/CloudComputing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

    • Examples demonstrating provisioning and management of Cloud VMs

    • Try:

      $ python VM/ec2_handler.py

  2. libvirt:

    • Examples demonstrating managing guest OSes (domains) on a host using libvirt

    • Try on EC2 Ubuntu 16.04 t2.micro instance

      $ sudo apt install python-pip $ pip install libvirt-python $ python libvirt/domain_handler.py

  3. ObjectStores:

    • Examples demonstrating use of Cloud Object Stores (e.g. AWS S3)

    • Grant AmazonS3FullAccess permission to your IAM Service Account / User

    • Try:

      $ python ObjectStores/s3_handler.py

  4. DynamoDB:

    • Starter code for working with AWS DynamoDB
    • Grant AmazonDynamoDBFullAccess to your IAM Service Account / User

About

Sample programs for Cloud Computing course at UT Austin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.9%
  • HTML 12.1%
  • Shell 2.0%
  • Dockerfile 2.0%