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