Return-Path: Delivered-To: apmail-incubator-libcloud-archive@minotaur.apache.org Received: (qmail 6437 invoked from network); 10 Dec 2010 23:26:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Dec 2010 23:26:56 -0000 Received: (qmail 53383 invoked by uid 500); 10 Dec 2010 23:26:56 -0000 Delivered-To: apmail-incubator-libcloud-archive@incubator.apache.org Received: (qmail 53291 invoked by uid 500); 10 Dec 2010 23:26:56 -0000 Mailing-List: contact libcloud-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: libcloud@incubator.apache.org Delivered-To: mailing list libcloud@incubator.apache.org Received: (qmail 53283 invoked by uid 99); 10 Dec 2010 23:26:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Dec 2010 23:26:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul@querna.org designates 74.125.82.41 as permitted sender) Received: from [74.125.82.41] (HELO mail-ww0-f41.google.com) (74.125.82.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Dec 2010 23:26:49 +0000 Received: by wwi18 with SMTP id 18so1584110wwi.0 for ; Fri, 10 Dec 2010 15:26:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.24.132 with SMTP id x4mr41386wex.81.1292023587373; Fri, 10 Dec 2010 15:26:27 -0800 (PST) Received: by 10.216.63.142 with HTTP; Fri, 10 Dec 2010 15:26:27 -0800 (PST) In-Reply-To: References: Date: Fri, 10 Dec 2010 15:26:27 -0800 Message-ID: From: Paul Querna To: libcloud@incubator.apache.org Content-Type: text/plain; charset=UTF-8 Subject: Re: [libcloud] Working with availability zones in EC2 AZs actually map pretty well to what list_locations should have available to you. For each region, we are currently hard coding a single Location: def list_locations(self): return [NodeLocation(0, 'Amazon US N. Virginia', 'US', self)] So I'd be fine with list_locations actually returning a list of the Availability Zones. I had some thought at one point of making an Aggregate EC2 Driver, which would connect to all regions and combine all operations across all regions, ie list_nodes, but this is kinda hard to be feasible for things like create_node which need Region specific parameters for things like what AMI to boot. In that context a list_locations returning each region would of made sense, but for a practical matter, I think returning each AZ inside a region is a good change. Thanks, Paul On Fri, Dec 10, 2010 at 3:14 PM, Grig Gheorghiu wrote: > Hello, > > I was looking for a way to launch EC2 instances via libcloud while > also specify an availability zone (AZ), such as us-east-1b or > us-east-1c for example. Libcloud supports the notion of EC2 location, > which is equivalent to an EC2 region from what I see, but there seems > to be no way of dealing with AZs. Or am I mistaken? > > Thanks, > > Grig >