Giter Club home page Giter Club logo

aws-tools's Introduction

aws-tools

Collection of Python scripts to manage Amazon AWS

Installation

    git clone https://github.com/thinhpham/aws-tools.git
    cd aws-tools
    pip install -r requirements.txt

Usage

  • It's pretty self-explanatory what each script does. Run the script without parameter to get the usage
  • Most of the scripts also accept a profile name if provided. They'll use the [default] profile if nothing is supplied. For example:
    python ec2_instance_list.py
    python ec2_instance_list.py --profile dev
    python ec2_instance_list.py --profile prod

Notes

  • Requires Python
  • Make sure you've configured your credentials and default region before using these scripts. Check for the existence of the ".aws" folder if you're not sure. The folder can be located in the following locations:
    • On Linux/Mac: ~/.aws
    • On Windows: %USERPROFILE%\.aws (Normally C:\Users\USERNAME\.aws)
  • You can create the ".aws" folder either manually or automatically by using the AWS Command Line Interface's interactive "configure" command
  • Automatic configuration. Just follow the prompts and it will generate configuration files in the correct locations for you
    aws configure
  • Manual configuration. See below for an example of both the "config" and "credentials" files inside the ".aws" folder
    • ~/.aws/config

      [default]
      output = json
      region = us-east-1
      
      [profile dev]
      output = xml
      region = us-west-1
      
      [profile prod]
      output = json
      region = us-east-1
    • ~/.aws/credentials

      [default]
      aws_access_key_id = AWS_ACCESS_KEY_ID
      aws_secret_access_key = AWS_SECRET_ACCESS_KEY
      
      [dev]
      aws_access_key_id = AWS_ACCESS_KEY_ID
      aws_secret_access_key = AWS_SECRET_ACCESS_KEY
      
      [prod]
      aws_access_key_id = AWS_ACCESS_KEY_ID
      aws_secret_access_key = AWS_SECRET_ACCESS_KEY

aws-tools's People

Contributors

thinhpham 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.