Skip to content

Instantly share code, notes, and snippets.

View james-prickett's full-sized avatar

James Prickett james-prickett

View GitHub Profile
@james-prickett
james-prickett / gist:1b37ab98afc564eec39e
Created February 24, 2015 16:03
Ruby scripts to create a load balanced cluster on AWS.
#!/usr/bin/env ruby
require 'aws-sdk'
@elb = Aws::ElasticLoadBalancing::Client.new(region: 'us-east-1')
@ec2 = Aws::EC2::Client.new(region: 'us-east-1')
def create_load_balancer
response = @elb.create_load_balancer(
load_balancer_name: "jboss-cluster-lb",