1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-11-16 02:41:13 +00:00

[aws] Merge aws_elb and aws_elb2 aliases and improve information shown

This commit is contained in:
Daniel Carrillo 2019-11-06 19:02:45 +01:00
parent f549bd7a0b
commit e9e8c31217

View File

@ -38,13 +38,11 @@ function aws_ebs {
function aws_elb { function aws_elb {
local profile=$(_get_aws_profile) local profile=$(_get_aws_profile)
aws elb describe-load-balancers --profile $profile --output ${_aws_output} \ 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) local profile=$(_get_aws_profile)
aws elbv2 describe-load-balancers --profile $profile --output ${_aws_output} \ 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 { function aws_userdata {