Skip to content

luk3thomas/aaws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

aaws

aaws allows you to switch between your AWS accounts and ssh into hosts by their EC2 name tag.

How it works

aaws sets the AWS_PROFILE environment variable sourced directly from your ~/.aws/credentials file.

~/ $ aaws luk3
[luk3] πŸ” ~/ $

Now you're able to interact with the aws CLI

[luk3] πŸ” ~/ $ aws s3 ls
2013-11-05 21:40:04 luk3thomas.com

When you're done you can unset your AWS profile by running aaws without any arguments

[luk3] πŸ” ~/ $ aaws
~/ $

Installation

Clone the repo to your home directory

git clone git@github.com:luk3thomas/aaws.git ~/.aaws

Load the aaws command into your ~/.bashrc or ~/.bash_profile

if [ -s $HOME/.aaws/aaws.sh ]; then
  source $HOME/.aaws/aaws.sh
fi

zsh

The script may require extra dependencies to successfully load aaws.

autoload -U bashcompinit; bashcompinit
autoload -U compinit; compinit

About

AWS account switcher

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages