Thursday, May 15, 2014

How to install Amazon awscli on your ubuntu machine

It is very easy to interact with Amazon S3 or ec2 (in general, Amazon aws services) from your command line interface. Amazon provided this useful setup which makes our things more easy now!!


All you have to do is to run a set of commands and you are all set to make connections to your S3 account. Note that these instructions are only for Ubuntu machine which are almost similar to the other linux versions.

1. You first have to install python (version >= 2.6.5).

2.  Download this file get-pip.py (If its not downloading you can visit this page: https://bootstrap.pypa.io/get-pip.py)

3. After downloading it, execute this command that installs all the setup tools:

>> sudo python get-pip.py

4.  After installing the setup tools, you have to install pip which is a python package installer. Execute these commands:

>> sudo apt-get install python-pip

5. Now install the awscli using pip by executing this command:

>> pip install awscli

6. Now all the installations are done. Verify if this got installed properly using this command:

>> aws help

7. Now we have to configure this system by providing security credentials. Execute:

>> aws configure

8. This asks you to enter your access key, secret key, region, etc. Provide all the necessary information and you are all set!

Hope you will find this useful. For more information, you can check this website: https://aws.amazon.com/cli/


No comments: