Options to aws elbv2 delete-listener by target group name, region

0

Is there a way to delete a listener on an LB via the CLI using the Target Group name, AWS region (and anything else that is needed to uniquely identify the listener)?

The current and only option is to identify the listener by the ARN (--listener-arn).

已提問 5 年前檢視次數 468 次
2 個答案
0

Hello,

kindly check this docs : https://docs.aws.amazon.com/cli/latest/reference/elb/delete-load-balancer-listeners.html

I hope it'll be helpful for you.

Regards,
CloudHasib

已回答 5 年前
0

Thanks. As per documentation for elb:
"This reference covers the 2012-06-01 API, which supports Classic Load Balancers. The 2015-12-01 API supports Application Load Balancers and Network Load Balancers."

I'm assuming this (elb command) will work against an ELB of Type:Application ?

This option should make it to elbv2, imo.

Also it would be good to have an enhancement request to perform a delete using the options I've mentioned in the title of this question. It was very inefficient to obtain the Target Group details and then parse down to retrieving the port/listener-arn in order to issue the delete.

已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南