Giter Site home page Giter Site logo

cc-1's Introduction

Assignment 1: On-demand Elastic IT Infrastructure

Prerequisites:
    1. Install AWS SDK for Python (Boto): boto 2.14
        $ pip install boto

    2. Set environment variables for credentials at ~/.boto:
        [Credentials]
        aws_access_key_id = <YOUR_ACCESS_KEY>
        aws_secret_access_key = <YOUR_SECRET_ACCESS_KEY> 

Usage:
    $ python run.py control_argument

    control_argument:

        init         -- Initialize instances (one-time operation)
                        Create and launch instances from public AMIs provided by AWS

        store        -- Store idle instances
                        Detach data volumes from instances, create volume snapshots, create AMIs and terminate instances

        store-s3     -- Same as `store', except copying snapshots to Amazon S3
                        using copy_snapshot()

        store-force  -- Store all instances

        restore      -- Restore instances
                        Launch instances from AMIs, create volume from volume 
                        snapshots and attach volumes to the instances

        list         -- List instances
                        List currently running instances

        scale        -- Autoscale instances
                        Create Autoscale groups and scaling alarms

        nscale       -- Stop autoscale
                        Delete Autoscale groups

        flushdb      -- Flush local DB files

        s3-init      -- Initialize S3 bucket (one-time operation)

        s3-put       -- Put a file to S3

        s3-get       -- Get a file from S3

        s3-print     -- Print the content of a file as string from S3

cc-1's People

Contributors

moleculea avatar

Watchers

 avatar Shouda Wang avatar Zhaohui 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.