Skip to content

Instantly share code, notes, and snippets.

@Aslan
Created February 17, 2010 02:56
Show Gist options
  • Save Aslan/306237 to your computer and use it in GitHub Desktop.
Save Aslan/306237 to your computer and use it in GitHub Desktop.
pool "cornice" do
cloud "app" do
using :ec2
user_data File.read('app_server_user_data.json')
image_id 'ami-879d71ee'
instances 1..1
security_group "cornice-security" do
authorize :from_port => 22, :to_port => 22
authorize :from_port => 80, :to_port => 80
authorize :from_port => 0, :to_port => 65535, :protocol => 'tcp', :group_name => 'default'
#authorize :from_port => 0, :to_port => 65535, :protocol => 'udp' , :source => 'default'
#revoke :from_port => -1, :to_port => -1, :protocol => 'icmp' , :source => 'default'
end
end
cloud "lb" do
using :ec2
user_data File.read('lb_user_data.json')
image_id 'ami-879d71ee'
instances 1..1
security_group "cornice-security" do
authorize :from_port => 22, :to_port => 22
authorize :from_port => 80, :to_port => 80
authorize :from_port => 0, :to_port => 65535, :protocol => 'tcp', :group_name => 'default'
#authorize :from_port => 0, :to_port => 65535, :protocol => 'udp' , :source => 'default'
#revoke :from_port => -1, :to_port => -1, :protocol => 'icmp' , :source => 'default'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment