infochimps-labs/ironfan — pull request #202 by mrflip (2012-10-29 19:04:21+00:00)
Title: workaround to make ec2 regions respect the cluster's region/AZ preference

I don't know the right way to do this:

* what do you do if multiple AZs are requested? I think it's like the chef environment thing -- you check, and fail the command.
* This probably shouldn't come from 'Chef::Config[:knife][:region]'. it's a delicate dance: you need to have loaded the cluster, but *not* triggered the Ec2.connection virtual accessor. I think the Ec2.connection should not auto-vivify itself -- the knife command should have to explicitly invoke Ec2.connect or something.