File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,29 @@ elbv2s() {
32
32
columnise
33
33
}
34
34
35
+ elbv2-arn (){
36
+
37
+ # List DNS Names of elbv2(s)
38
+ #
39
+ # USAGE: elbv2-dnsname load-balancer [load-balancer]
40
+ #
41
+ # $ elbv2s | elbv2-dnsname
42
+ # bash-my-aws bash-my-aws-c23c598688520e51.elb.ap-southeast-2.amazonaws.com
43
+ # bash-my-aws-alb bash-my-aws-alb-2036199590.ap-southeast-2.elb.amazonaws.com
44
+
45
+ local elbv2_names=$( skim-stdin " $@ " )
46
+ [[ -z " ${elbv2_names} " ]] && __bma_usage " load-balancer [load-balancer]" && return 1
47
+
48
+ aws elbv2 describe-load-balancers \
49
+ --names $elbv2_names \
50
+ --output text \
51
+ --query "
52
+ LoadBalancers[][
53
+ LoadBalancerArn
54
+ ]" |
55
+ columnise
56
+ }
57
+
35
58
elbv2-dnsname (){
36
59
37
60
# List DNS Names of elbv2(s)
You can’t perform that action at this time.
0 commit comments