Code Monkey home page Code Monkey logo

aws-scripts's Introduction

aws-scripts

Various scripts to make AWS management easier.

Developed and tested (mainly) on Debian Wheezy with Bash 4.2 and Python 2.7:

# apt-get install python2.7 python-pip
# pip install awscli
$ aws --version
aws-cli/1.3.4 Python/2.7.3 Linux/3.2.0-4-amd64

backup-audit-aws

Python script that connects to AWS, calculates a number of snaphosts availabe for each volume and sends a summary (a .csv file) via email.

The script can check multiple AWS accounts. You need to have AWS access and secret keys, plus your AWS account ID. Account ID is used by get_all_snapshots and get_all_images.

SMTP server details are required if you want to send emails.

The getFreeSnapshots function can be used to remove snapshots that have:

  • no AMI and
  • no existing volume.

This function is not called by default.

Usage

$ python ./backup-audit-aws.py

bulk-mod-of-aws-security-groups

Bash script that opens a TCP/UDP/ICMP port on all AWS security groups. Script requires Python and aws cli.

create-ec2-instance

Bash script that creates a new EC2 instance inside a VPC from an AMI. Script requires Python and aws cli.

ses-smtp-converter

Bash script that converts AWS IAM user's credentials to Amazon SES SMTP credentials. Script requires OpenSSL.

Usage

$ ./ses-smtp-conv.sh AWSAccessKeyID AWSSecretAccessKey

aws-scripts's People

Contributors

lisenet avatar icasimpan avatar crylium avatar

Watchers

James Cloos 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.