我负责管理具有预先存在的负载均衡器的AWS账户,并想知道它是Classic负载均衡器还是application load balancer。
我无法通过网络控制台或ruby API
找到相关信息答案 0 :(得分:2)
在您查看负载均衡器列表的Web控制台中,有一个“类型”列,告诉您它的类型。
答案 1 :(得分:1)
使用API V2 describe-load-balancers command将为您提供ELB的类型。
aws elbv2 describe-load-balancers --names my-load-balancer
类型将指示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"
}
]
}
]
}