Skip to content

Instantly share code, notes, and snippets.

@christinedraper
Created February 2, 2015 19:17
Show Gist options
  • Save christinedraper/81efddfde26ebb2573ac to your computer and use it in GitHub Desktop.
Save christinedraper/81efddfde26ebb2573ac to your computer and use it in GitHub Desktop.
ELB with two listeners using chef-provisioning
require 'chef/provisioning'
with_driver "aws"
with_data_center 'us-west-1' do
machine 'bowser' do
machine_options :bootstrap_options => {
:key_name => 'test2-aws'
}
end
load_balancer "webapp-elb" do
load_balancer_options :availability_zones => ['us-west-1b'],
:listeners => [{
:port => 80,
:protocol => :http,
:instance_port => 80,
:instance_protocol => :http
},
{
:port => 3301,
:protocol => :tcp,
:instance_port => 3301,
:instance_protocol => :tcp
}
]
machines [ 'bowser' ]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment