Skip to content

raravena80/awsvm

Repository files navigation

AwsVM Build Status Apache Licensed

Simple AWS environment manager, usage inspired by wayneeseguin/rvm

Installation

# AwsVM will create a symlink between (~/.awsvm -> ~/.aws ), make sure you have no ~/.aws directory before installing
mv ~/.aws ~/.aws.bak
git clone git://github.com/raraven80/awsvm.git ~/.awsvm
~/.awsvm/bin/awsvm init # Follow these instructions

After following these instructions reload your terminal, then

awsvm create old_config
mv ~/.aws.bak/* ~/.awsvm/configurations/old_config
rm -rf ~/.aws.bak

Usage

Put the files (knife.rb, pem keys, etc...) that you would normally have in ~/.aws into a folder named whatever you want in the configurations folder, then you can use that name in place of YOUR_AWS_CONFIG in the below commands

# Use a specific config
awsvm use {YOUR_AWS_CONFIG|default}
# or
awsvm YOUR_AWS_CONFIG

# Set your default config
awsvm default YOUR_AWS_CONFIG

# List your configurations, including current and default
awsvm list

# Create a new config
awsvm create YOUR_AWS_CONFIG

# Delete a config
awsvm delete YOUR_AWS_CONFIG

# Copy a config
awsvm copy SRC_CONFIG DEST_CONFIG

# Rename a config
awsvm rename OLD_CONFIG NEW_CONFIG

# Open a config directory in $EDITOR
awsvm edit YOUR_AWS_CONFIG

# Update awsvm to the latest
awsvm update

Handy Prompt function

You can use awsvm current in PS1 in bash to see your current config in your prompt

PS1="\$(awsvm current)" $

Contributing

Fork and send a pull request.

Running tests

The following will bring up an ubuntu based vm, install awsvm, and run the bats tests against it.

vagrant up

While the vm is up you can run the following to re-run tests without rebuilding the vm.

vagrant provision

When you are done.

vagrant down

About

Utility that allows you to switch AWS accounts for the aws cli

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages