Return-Path: X-Original-To: apmail-libcloud-users-archive@minotaur.apache.org Delivered-To: apmail-libcloud-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2EDCF9DF4 for ; Tue, 17 Jan 2012 17:02:36 +0000 (UTC) Received: (qmail 61998 invoked by uid 500); 17 Jan 2012 17:02:35 -0000 Delivered-To: apmail-libcloud-users-archive@libcloud.apache.org Received: (qmail 61984 invoked by uid 500); 17 Jan 2012 17:02:35 -0000 Mailing-List: contact users-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@libcloud.apache.org Delivered-To: mailing list users@libcloud.apache.org Received: (qmail 61976 invoked by uid 99); 17 Jan 2012 17:02:35 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2012 17:02:35 +0000 Received: from localhost (HELO mail-pz0-f45.google.com) (127.0.0.1) (smtp-auth username tomaz, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2012 17:02:35 +0000 Received: by dafa1 with SMTP id a1so2502917daf.18 for ; Tue, 17 Jan 2012 09:02:34 -0800 (PST) Received: by 10.68.115.106 with SMTP id jn10mr36099860pbb.64.1326819754750; Tue, 17 Jan 2012 09:02:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.217.4 with HTTP; Tue, 17 Jan 2012 09:02:13 -0800 (PST) In-Reply-To: References: From: =?ISO-8859-2?Q?Toma=BE_Muraus?= Date: Tue, 17 Jan 2012 09:02:13 -0800 Message-ID: Subject: Re: change ec2 shutdown behavior with libcloud To: users@libcloud.apache.org Content-Type: multipart/alternative; boundary=e89a8ff24c0f29b0f204b6bc4c91 --e89a8ff24c0f29b0f204b6bc4c91 Content-Type: text/plain; charset=ISO-8859-1 Currently you cannot do that using libcloud, but implementing an extension method which does this should be pretty easy. Let us know if you need help with it. On Tue, Jan 17, 2012 at 3:32 AM, Yaron Naveh wrote: > Hi > > I use libcloud to create an ec2 instance via the create_node api. > > How to set a shutdown behavior of "terminate" to this instance? > > I want to get the same effect as if I used: > > $> ec2-modify-instance-attribute instance_id > --instance-initiated-shutdown-behavior terminate > > Thanks, > Yaron > --e89a8ff24c0f29b0f204b6bc4c91--