Giter Site home page Giter Site logo

vcchau / cloudcomputing Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devdattakulkarni/cloudcomputing

0.0 0.0 0.0 129 KB

Sample programs for Cloud Computing course at UT Austin

Home Page: http://www.cs.utexas.edu/~devdatta/

License: Apache License 2.0

Dockerfile 1.64% Python 86.79% HTML 9.89% Shell 1.67%

cloudcomputing's Introduction

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

cloudcomputing's People

Contributors

devdattakulkarni avatar vcchau avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.