Barra de espaço
Barra de espaço

This tutorial describes a detailed procedure showing how to perform the installation of amazon´s EC2 API tool on a computer running Uubntu Linux.

YOUTUBE

In our channel you can view the video of this tutorial.



Execute the following commands to install the necessary packages.

# apt-add-repository ppa:awstools-dev/awstools
# apt-get update
# apt-get install ec2-apt-tools



At this point it is necessary to do the creation of your AWS access keys. So, go to your amazon cloud console.(LINK)


Click on your name in the upper right corner, select the security credentials option and create your access keys.

amazon aws instalacao do ec2 api tools no linux 2

 

At the end of this process, you will download a file containing the access keys you need to our next step.


amazon aws instalacao do ec2 api tools no linux 3


Edit the file named environment located in the /etc directory and enter the following variables.

# vi /etc/environment
AWS_ACCESS_KEY=AKIAINGHK2UJL7AEVHHA
AWS_SECRET_KEY=YKx3bxUFcMQHpfc5m49ffXGXyS9nSjvXbtNXAKlv
EC2_URL=https://ec2.us-west-2.amazonaws.com



  • Change the value of AWS_ACCESS_KEY to your public key.
  • Change the value of AWS_SECRET_KEY to your private key.
  • Change the value of EC2_URL to the region where it is located your virtual machine. 


Note! The value of EC2_URL variable depends on the region where your virtual machine is located. (LINK)


Log off and log back into the system so that the variables previously created are set up correctly.

Run the following command to test your installation and communication with the Amazon AWS.

# ec2-describe-regions

 

Note! the above command should list the areas available in Amazon AWS.

O software ec2-api-tools foi instalado em seu sistema com sucesso. 

CONCLUSION

This tutorial introduced the software installation process of EC2 API Tools on a computer running Ubuntu Linux.