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