This patch uses the new 'Firewalls' collection (I pushed that to trunk today). The create_instance operation for the ec2 driver takes an array of firewall names for the instance to be 'launched into'. Patch includes:
* necessary modifications to server.rb * addition of 'firewalls' to the Instance model * modification of the haml views: html for the create operation, html/xml for showing firewalls when inspecting a given instance. If you aren't using the html interface to create an instance, you can specify firewalls using form input : 'firewall#=name' where '#' is any digit. For example: curl -F 'image_id=ami-48aa4921' -F 'firewalls1=default' -F 'firewalls2=test' --user 'ec2_key:ec2_password' http://localhost:3001/api/instances?format=xml will create an instance from ami-48aa4921 and place it into firewalls 'default' and 'test'. EC2 does not support 'moving' an instance between firewalls once it's launched so this functionality was not implemented (http://aws.amazon.com/articles/1145?_encoding=UTF8&jiveRedirect=1#13) marios
