I'm wondering how to go about spinning up multiple EC2 servers using knife of the same type, say 4 app servers, and assigning them each an elastic IP from a pool of available Elastic IPs. I have assigned EC2 servers elastic IP's using the ASW cookbook from OpsCode, and the usage instructions tell me to use a data bag to store the IP, but their instructions seem to only make sense when you have a single server that you are spinning up.
My ideal use case would be that I create my app-server cookbook, and in the recipe it pings the Chef server to find out an available elastic IP from a pool. I don't mind manually defining that pool, but I just can't seem to figure out how to remove IPs that are already taken from the pool, so that only available ones are dished out.
Any ideas?