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
- Host: GitHub
- URL: https://github.com/mostlygeek/multi-aws
- Owner: mostlygeek
- Created: 2013-04-19T20:01:53.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-09-04T23:45:56.000Z (over 12 years ago)
- Last Synced: 2025-02-12T16:51:51.287Z (10 months ago)
- Language: Shell
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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