Open flores opened 12 years ago
18:47 < dyoder> hey you know i can just query AWS directly. no need for an import file. 18:47 < lo> here's the use case i imagine: 18:47 < lo> i just made a web-production bank. it is awesome and i am ready to bring it live and start managing production with befog 18:47 < lo> but i already have 2 existing web servers that i want to add to that bank 18:48 < lo> or, other use case: i am borderstylo and have ~40 aws servers 18:48 < lo> but i am not smart like bosty and have never configured names or security groups 18:48 < dyoder> in the first case it might be easiest to just edit the YAML file yourself 18:48 < dyoder> if it's only 2 servers 18:48 < lo> yeah -- i'm saying we should README-ify that 18:49 < dyoder> with lots of servers, though (like we have) that is where i was thinking i could just query AWS 18:49 < dyoder> lo: ah. ok. 18:49 < dyoder> i see. i took from that last bit that you were imagining the only way to do it was to create a file to import from. 18:49 < lo> in querying aws, the user is prompted for each unbank'd server? 18:49 < lo> asking which bank to add it to? 18:50 < lo> dyoder -- i should probably add an or in there. import from file or edit existing .befog works. 18:50 < dyoder> lo: no, i like your idea of regexp against a field. but we can have a --interactive mode, too. 18:50 < dyoder> (for the case where they haven't set up security groups or names or anything we can match against) 18:50 < lo> readme explaining a bit of .befog is best 18:52 < dyoder> befog import web-prod -q aws --name '^web' 18:53 < lo> or --securitygroup 'production' ? 18:53 < dyoder> exactly? 18:53 < lo> maybe add the / / when using regex though
Let's say I already have an AWS account with a bunch of servers. I'd like to able to use befog to manage and create clusters, or banks, for those servers.
Ideas for options:
Simply use security group names to create banks.
Use the name tag if available. Perhaps allow for a regex, so folks using ["web1-production", "web2-production"] naming conventions can easily bank their stacks.
README entry explaining how to easily create a configuration file to import into befog. Perhaps we could import or edit a file in the same format as #24.