Here is a good example of how you can use boto+fabric

https://gist.github.com/gtaylor/1901752

Rahul


On Thu, Oct 10, 2013 at 5:21 AM, S Ahmed <sahmed1...@gmail.com> wrote:

> Yeah I could use the python api client, and somehow fetch the instances by
> tags.
>
>
> On Wed, Oct 9, 2013 at 5:01 PM, Andres Riancho 
> <andres.rian...@gmail.com>wrote:
>
>> I would say... don't. Modifying source in an automated way is not a
>> good idea, also this will break stuff like git.
>>
>> I would recommend you somehow find out the IP addresses for your
>> servers by calling the Amazon API. For example, call the API to list
>> all instances, then retrieve the instance name and filter by "web",
>> for each of those instances get the IP address and use that to connect
>> to it.
>>
>> On Wed, Oct 9, 2013 at 4:40 PM, S Ahmed <sahmed1...@gmail.com> wrote:
>> > I am using fabric to deploy code to ec2.
>> > I have 3 sets of servers:  web, application, jobs
>> >
>> > After I spin up these servers: 1 x web, 3 x app, 1 x jobs
>> >
>> > I have to grap the ipaddresses for each, and update my fabfile.py with
>> the
>> > ip addresses.
>> >
>> > How would you suggest I do this, any best practises around this?
>> >
>> > _______________________________________________
>> > Fab-user mailing list
>> > Fab-user@nongnu.org
>> > https://lists.nongnu.org/mailman/listinfo/fab-user
>> >
>>
>>
>>
>> --
>> Andrés Riancho
>> Project Leader at w3af - http://w3af.org/
>> Web Application Attack and Audit Framework
>> Twitter: @w3af
>> GPG: 0x93C344F3
>>
>
>
> _______________________________________________
> Fab-user mailing list
> Fab-user@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/fab-user
>
>
_______________________________________________
Fab-user mailing list
Fab-user@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to