How to know if a existing AWS ELB is either Classic or Application load Balancer

1.9k Views Asked by At

I got responsible for the management of a AWS account with a preexisting load balancer, and want to know if it is a Classic load balancer or an application load balancer.

I could not find the information either through the web console or the ruby API

2

There are 2 best solutions below

1
Mark B On BEST ANSWER

In the web console when you look at your list of load balancers there is a "Type" column that tells you which type it is.

0
Upul Doluweera On

With API V2 describe-load-balancers command will give you the type of the ELB.

aws elbv2 describe-load-balancers --names my-load-balancer

Type will indicate the type of the ELB

{
  "LoadBalancers": [
  {
      "VpcId": "vpc-3ac0fb5f",
      "LoadBalancerArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
      "State": {
          "Code": "active"
      },
      "DNSName": "my-load-balancer-424835706.us-west-2.elb.amazonaws.com",

      "SecurityGroups": [
          "sg-5943793c"
      ],
      "LoadBalancerName": "my-load-balancer",
      "CreatedTime": "2016-03-25T21:26:12.920Z",
      "Scheme": "internet-facing",
      "Type": "application",
      "CanonicalHostedZoneId": "Z2P70J7EXAMPLE",
      "AvailabilityZones": [
          {
              "SubnetId": "subnet-8360a9e7",
              "ZoneName": "us-west-2a"
          },
          {
              "SubnetId": "subnet-b7d581c0",
              "ZoneName": "us-west-2b"
          }
          ]
      }
  ]
}