ec2.cli
is a simple & fast alternative command line utiltity for communicating with AWS EC2 machines. The goal is to provide the ability to gain SSH access quickly without any prior knowledge of the target machine. The cli has been designed to provide a tab completion interface for speed and ease.
tar -xzf ec2.cli-*.tar.gz
ec2.cli setup
(mandatory for tab completion) source ~/.bashrc
and/or source ~/.zshrc
The following items might need changing depending on your environment.
ec2.cli set awsAccessKey KEY
& ec2.cli set awsSecretKey KEY
~/.aws/credentials
, execute ec2.cli set awsProfile PROFILE
to set the name of the profile, orAWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
environment variables are used by defaultec2.cli set cert FILELOC
define where to find your SSH private fileec2.cli set user USERNAME
if you use a different username on your EC2 machines than the current userec2.cli set region AWSREGION
if your machines are not located in eu-west-1
~/.ec2.cli
~/.ec2.cli/ec2.cli
~/.ec2.cli/cache
~/.ec2.cli/config
~/.ec2.cli
~/.bashrc
and/or ~/.zshrc