Differences between revisions 2 and 3
Revision 2 as of 2009-07-18 16:19:17
Size: 2404
Comment:
Revision 3 as of 2009-07-18 18:19:59
Size: 2322
Comment: removed the --region comment since it is now coming and I don't want to update this page too often.
Deletions are marked like this. Additions are marked like this.
Line 33: Line 33:
The above line makes use of the not so well known feature to set environment variables for a single call to some program by prepending the assignment to the command's invocation. Where is Asia - it was announced on the ISC in Hamburg, but I cannot find the URL ... any help out there?

The euca2ools don't feature the "--region" attribute that the ec2-analogue offers.
The above line makes use of the not so well known feature to set environment variables for a single call to some program by prepending the assignment to the command's invocation. Where is Asia - it was announced at the ISC '09 in Hamburg, but I cannot find the URL ... any help out there?

The 'euca2ools' are a free clone of the management utilities for the Amazon Elastic Compute Cloud (EC2). To use them, you either need an account with the Eucalyptus Public Cloud (EPC), install the Eucalyptus cloud infrastructure locally (a respective Debian package is in preparation) or you need an account with Amazon.com's services.

A Debian package was kindly provided by the upstream developers at Eucalyptus and was recently submitted to the Debian New Queue.

euca2ools with Amazon's Web Services

The following presents a first success story for using the euca2ools for Amazon's services.

Preparation

There are two ways to authenticate oneself on the net: ID+password (most common) or X.509 certificates (increasingly common). The EC2 allows either, but apparently euca2ools only manage with the prior. Hence one needs to login to Amazon, chose in the top tab row "Your account", then on the left "Access identifiers". The access key (like a regular ID) and the secret access key (like a password) need to be passed somehow to the euca2ools. Do so by setting environment variables, also specify the amazon head node:

export EC2_ACCESS_KEY=0GFSRLKJISFDKUHG
export EC2_SECRET_KEY="8iHgfFj/kGHFh8jVvHkTGfREg+G"
export EC2_URL=http://ec2.amazonaws.com

Example: Show zones

$ euca-describe-availability-zones
AVAILABILITYZONE        us-east-1a      available
AVAILABILITYZONE        us-east-1b      available
AVAILABILITYZONE        us-east-1c      available
AVAILABILITYZONE        us-east-1d      available

and for some very strange reason, the analogue for Europe is not ec2.euro.amazonaws.com but the following

$ EC2_URL=https://eu-west-1.ec2.amazonaws.com euca-describe-availability-zones
AVAILABILITYZONE        eu-west-1a      available
AVAILABILITYZONE        eu-west-1b      available

The above line makes use of the not so well known feature to set environment variables for a single call to some program by prepending the assignment to the command's invocation. Where is Asia - it was announced at the ISC '09 in Hamburg, but I cannot find the URL ... any help out there?

Example: describe images

I have just successfully tested the removal of images - no output here :)

Someone please feel free to continue...