GithubHelp home page GithubHelp logo

ec2-scripts's Introduction

==================
EC2 Scripts README
==================

This repository contains a set of convenience scripts to
manage AWS resources at Gluster.

------
Source
------

The github repository for this scripts is: https://github.com/vikasgorur/ec2-scripts

-----
Setup
-----

The tools require Ruby (>= 1.8.7) to be installed, along with the following Ruby gems:
    amazon-ec2 (https://github.com/grempe/amazon-ec2)

# gem update --system
# gem install amazon-ec2

The tools also require that two environment variables be set:

export AMAZON_ACCESS_KEY_ID=
export AMAZON_SECRET_ACCESS_KEY=

These should be set to your AWS API access keys.

-----
Usage
-----

--------
Commands
--------

Create a spot instance:

Usage: create-spot-instance -k KEY -o OWNER [-t TYPE] [-z ZONE] [-g GROUP] [-e DAYS] [-m ADDR] NAME
    -k, --key KEY                    SSH key name for the instance
    -o, --owner OWNER                Owner of the instance
    -t, --type TYPE                  Type of the instance (default: m1.large)
    -z, --zone ZONE                  Availability zone for the instance
    -g, --group GROUP                Security group (default: 'default')
    -e, --expires DAYS               Expiration period for the instance (in days)
    -m, --mail ADDRESS               E-mail address for reminders

The expiration period and reminder email address are needed for aws-cop to enforce them. If no such enforcement
is needed in your AWS account, you can choose to not specify them.

Terminate an instance:

Usage: terminate-instance -o OWNER NAME
    -o, --owner OWNER                Owner of the instance

List instances:

Usage: list-instances [-o <Owner>]
    -o, --owner OWNER                Show only instances belonging to given owner
    -e, --expired                    Show only expired instances

Modify expiry date:

Usage: modify-expiry-date -o OWNER [-p N] [-m N] NAME
    -p, --plus N                     Add N days to the expiry date
    -m, --minus N                    Subtract N days from the expiry date
    -o, --owner OWNER                Owner of the instance

-------
Contact
-------

Questions, comments, patches, beer:
Vikas Gorur <[email protected]>

ec2-scripts's People

Contributors

vikasgorur avatar

Stargazers

Rahul Chanila avatar Harshavardhana avatar  avatar

Watchers

 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.