An open API service indexing awesome lists of open source software.

https://github.com/mostlygeek/multi-aws

Make it easy to work with multiple AWS accounts
https://github.com/mostlygeek/multi-aws

Last synced: 8 months ago
JSON representation

Make it easy to work with multiple AWS accounts

Awesome Lists containing this project

README

          

# About

This makes it easy to change your AWS/EC2 environment on the command
line.

This is useful when working with multiple AWS/EC2 accounts. You do not
need to specify the access key/secret with each command. You simply
type `aws {environment}` and the proper enviroment variables
will be set.

## Usage

* create a new settings file in the `creds/` dir, like `creds/prod.cred`
* use `multiaws prod` to switch to the environment
* use `multiaws` to show usage instructions

## Installation

* `git clone git@github.com:mostlygeek/multi-aws.git ~/multiaws`
* `mkdir ~/multiaws/creds`
* add: `source $HOME/multiaws/bash-ec2` to `.bash_profile`
* done

## Creating cred/ files

The files in there are `source`'d by bash so they replace
the current environmnent variables for `EC2_ACCESS_KEY` and
`EC2_SECRET`. The files look like this:


export AWS_ACCESS_KEY=your access key
export AWS_SECRET_KEY=your secret