Method: Stax::Cmd::Alb#status

Defined in:
lib/stax/mixin/alb.rb

#statusObject



33
34
35
36
37
38
39
40
41
42
# File 'lib/stax/mixin/alb.rb', line 33

def status
  stack_albs.each do |alb|
    Aws::Alb.target_groups(alb.physical_resource_id).each do |t|
      debug("ALB status for #{alb.logical_resource_id} #{t.protocol}:#{t.port} #{t.target_group_name}")
      print_table Aws::Alb.target_health(t.target_group_arn).map { |h|
        [h.target.id, h.target.port, color(h.target_health.state, COLORS), h.target_health.reason, h.target_health.description]
      }
    end
  end
end