Skip to content
gregdek edited this page Apr 18, 2013 · 2 revisions

Author: Mitch Garnaat, et al

Website: https://github.com/boto/boto

Download URL: http://pypi.python.org/pypi/boto

License: MIT


boto is an integrated interface to current and future infrastructural services compatible with AWS.

Example Usage

Setup boto

Install boto, setup the environment, and so on.

As root,

python setup.py install

Using boto

Eucalyptus EC2 interface

region = RegionInfo(name="eucalyptus", endpoint="hostname")

connection = boto.connect_ec2(aws_access_key_id="access key",
                      aws_secret_access_key="secret",
                      is_secure=False,
                      region=region,
                      port=8773,
                      path="/services/Eucalyptus")

#Run commands

zones = connection.get_all_zones()

where, "hostname" is the name of the Eucalyptus front end.

For instance, if EC2_URL is set to http://192.168.9.1:8773/services/Eucalyptus,

hostname should be "192.168.9.1"

Eucalyptus S3 interface


calling_format=boto.s3.connection.OrdinaryCallingFormat()
connection = boto.s3.Connection(aws_access_key_id="access key",
                      aws_secret_access_key="secret",
                      is_secure=False,
                      host="hostname",
                      port=8773,
                      calling_format=calling_format,
                      path="/services/Walrus")

#Run commands

bucket_instance = connection.get_bucket(bucket)
keys = bucket.get_all_keys()
for k in keys:
    #do something

category.tools

Clone this wiki locally