mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 17:28:01 +00:00
[aws] Merge aws_elb and aws_elb2 aliases and improve information shown
This commit is contained in:
parent
f549bd7a0b
commit
e9e8c31217
@ -38,13 +38,11 @@ function aws_ebs {
|
||||
function aws_elb {
|
||||
local profile=$(_get_aws_profile)
|
||||
aws elb describe-load-balancers --profile $profile --output ${_aws_output} \
|
||||
--query 'LoadBalancerDescriptions[*].{chz:CanonicalHostedZoneName,vpc:VPCId,name:LoadBalancerName}'
|
||||
}
|
||||
--query "LoadBalancerDescriptions[*].{type:'elb',scheme:Scheme,dns:DNSName,vpc:VPCId,name:LoadBalancerName,subnets:Subnets[*] | join(',', @)}"
|
||||
|
||||
function aws_elb2 {
|
||||
local profile=$(_get_aws_profile)
|
||||
aws elbv2 describe-load-balancers --profile $profile --output ${_aws_output} \
|
||||
--query "LoadBalancers[*].{dns:DNSName,vpc:VpcId,name:LoadBalancerName,subnets:AvailabilityZones[*].SubnetId | join(',', @)}"
|
||||
--query "LoadBalancers[*].{type:Type,scheme:Scheme,dns:DNSName,vpc:VpcId,name:LoadBalancerName,subnets:AvailabilityZones[*].SubnetId | join(',', @)}"
|
||||
}
|
||||
|
||||
function aws_userdata {
|
||||
|
Loading…
Reference in New Issue
Block a user