The EC2 API tools are commands that wrap the Amazon EC2 API actions. Refer to the Amazon EC2 documentation for more information.
Before installing, make sure you have the multiverse repository enabled. Add the following lines to the /etc/apt/sources.list file:
deb http://cdn-aws.archive.ubuntu.com/ubuntu/ bionic multiverse
deb-src http://cdn-aws.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://cdn-aws.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb-src http://cdn-aws.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
Run the following commands to install the tools:
sudo apt update
sudo apt install ec2-api-tools
Check the version of the installed tools:
ec2-version
NOTE: ec2-api-tools
has been replaced with Debian's own euca-2ools
because:
Historical note: the original Amazon EC2 API Tools were not DFSG-compliant, but Debian (still) distributes alternate set of DFSG-compliant tools, that are designed to be fully compatible, called euca2ools.
-- Source: Amazon EC2 FAQ - https://wiki.debian.org/Amazon/EC2/FAQ#Q:_Where_can_I_find_the_CLI_tools_to_manage_EC2.3F
Before installing, make sure you have the multiverse repository enabled. Add the following lines to the /etc/apt/sources.list file:
deb http://cdn-aws.deb.debian.org/debian stretch multiverse
deb-src http://cdn-aws.deb.debian.org/debian stretch multiverse
deb http://cdn-aws.deb.debian.org/debian stretch-updates multiverse
deb-src http://cdn-aws.deb.debian.org/debian stretch-updates multiverse
Run the following commands to install the tools:
sudo apt update
sudo apt install euca2ools
Check the version of the installed tools:
euca-version
euca2ools 3.3-devel (Yokohama)
Just like how you would normally use ec2-api-tools
but with a minor change. All of the Amazon API commands are included in this tool. euca-2ools
is sort of a rewrite of Amazon's own ec2-api-tools
but with compliant to the Debian Free Software Guideline (DFSG)
Just substitute (replace) ec2
with euca
- Before:
ec2-import-instance
- After:
euca-import-instance