Amazon - Amazon EC2 Tool Installation Under Ubuntu

By Jack Szwergold • January 7, 2016

Edit the sources list:

sudo nano /etc/apt/sources.list

Uncomment the lines for multiverse repos:

deb trusty multiverse
deb-src trusty multiverse
deb trusty-updates multiverse
deb-src trusty-updates multiverse

Then update the repositories:

sudo aptitude update

Now you can install the Amazon EC2 API tools:

sudo aptitude install ec2-api-tools

This is an example command that allows one to open the Amazone EC2 security set to all ICMP traffic instead of just SSH traffic on port 22:

ec2-authorize -O "$AWS_ACCES_KEY" -W "$AWS_SECRET_KEY" default -P icmp -t -1:-1 -s