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 Windows 2012.

YOUTUBE

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



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



Install Java on your computer as shown in this video from our channel.


Download EC2 API Tools. (LINK)

Unzip the installation package and move its contents to the root of drive C.

  • Example - C:\ec2-api-tools-1.7.5.1

    Right click on My Computer and select properties to be presented to a new windows, then, click on the Advanced system settings option.

    amazon aws instalacao do ec2 api tools no windows 2008 1


Create a system variable called EC2_HOME that points to the directory where is located the API tools. (Example EC2_HOME = C:\ec2-api-tools-1.7.5.1)

To test your variable, open a command prompt and try to run the command below.

C:\> dir "%EC2_HOME%"

22/10/2015 14:30 <DIR> .
22/10/2015 14:30 <DIR> bin
22/10/2015 14:30 <DIR> lib
07/09/2015 05:01 4.852 license.txt
3 arquivo(s) 51.859 bytes
07/09/2015 05:01 46.468 THIRDPARTYLICENSE.TXT
4 pasta(s) 147.083.341.824 bytes disponíveis



Edit the PATH environment variable and add the path to the bin folder of the API tools.

  • Before - PATH=C:\ProgramData\Oracle\Java\javapath;c:\Program Files (x86)\CA\SC\CAWIN\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%CSAM_SOCKADAPTER%bin;c:\Program Files (x86)\CA\SC\CBB\;c:\Program Files (x86)\CA\DSM\bin;c:\PROGRA~2\CA\SC\CAM\bin;C:\Program Files\Dell\SysMgt\shared\bin;

  • After - PATH=C:\ProgramData\Oracle\Java\javapath;c:\Program Files (x86)\CA\SC\CAWIN\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%CSAM_SOCKADAPTER%bin;c:\Program Files (x86)\CA\SC\CBB\;c:\Program Files (x86)\CA\DSM\bin;c:\PROGRA~2\CA\SC\CAM\bin;C:\Program Files\Dell\SysMgt\shared\bin;C:\ec2-api-tools-1.7.5.1\bin

Create an environment variable called AWS_ACCESS_KEY containing the public key to access your account.

Create an environment variable called AWS SECRET KEY containing the private key to access your account.

Create an environment variable called EC2_URL that point to the Amazon region you want to connect.

 amazon aws instalacao do ec2 api tools no windows 2008 2


Here is a quick example: 

WS_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)


Open a DOS prompt and run the following command to test your installation and communication with the Amazon AWS.

C:\> ec2-describe-regions

 

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

The ec2-api-tools software was installed on your system successfully.

CONCLUSION

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