Setup Python / Boto for AWS on Ubuntu 13.04

I’ll quickly take you through configuring Ubuntu 13.04 so you can use Python and Boto with Amazon Web Services (AWS).

Boto is an interface to access all of the Amazon Web Services via the Python programming language. Using Boto you can write some handy scripts to automate simple things like starting or stopping EC2 instances or taking regular snapshots of your servers..

All the syntax listed here is executed via the command line. Simply open a terminal window and you’re good to go

Installing Python and Python development libraries:

I install the python-dev package as you’ll find you may require them in the future when attempting to install additional Python packages.

We will use Python pip to manage additional packages:

easy_install is another popular tool to install and manage Python packages. Currently pip appears to be gaining more favour amongst Python users.

Finally we will install the Boto package via pip:

This process is pretty straight forward, pip will connect to the web server, search for the package, download it, compile it if required and enable it in your environment.

To test that Boto has successfully installed into our environment:

If installed correctly you should simply get the output of the current Boto version installed.

  1 comment

  1. Ripon   •  

    Thanks. Since boto is alredy installed, needed to use pip install boto –upgrade

Leave a Reply to Ripon Cancel reply

Your email address will not be published. Required fields are marked *

eight × = 72

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">