Sha256: 64ee10c25dac8e60a6df374cdef983647b4ccffd75c1e655d62c9356a59d8970

Contents?: true

Size: 638 Bytes

Versions: 8

Compression:

Stored size: 638 Bytes

Contents

$: << File.expand_path("../../lib", __FILE__)

require 'aws/elb'

##
# Expects your Amazon keys to be in the environment, something like
#
# export AWS_KEY="KEY"
# export AWS_SECRET="SECRET"
##

$elb = AWS::ELB.new ENV["AWS_KEY"], ENV["AWS_SECRET"]

puts "", "Your Load Balancers", ""

$elb.describe_load_balancers.load_balancer_descriptions.each do |elb|
  puts "Name: #{elb.load_balancer_name}"
  puts "HealthCheck: #{elb.health_check.inspect}"

  elb.listener_descriptions.each do |desc|
    l = desc.listener
    puts "Listener: #{l.protocol}:#{l.load_balancer_port} => #{l.instance_protocol}:#{l.instance_port}"
  end

  puts ""
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
simple_aws-1.0.0 samples/elb.rb
simple_aws-1.0.0.pre3 samples/elb.rb
simple_aws-1.0.0.pre2 samples/elb.rb
simple_aws-1.0.0.pre1 samples/elb.rb
simple_aws-0.0.1d samples/elb.rb
simple_aws-0.0.1c samples/elb.rb
simple_aws-0.0.1b samples/elb.rb
simple_aws-0.0.1a samples/elb.rb