2回答
- 新しい順
- 投票が多い順
- コメントが多い順
0
Using Config you cannot get the Listener attributes you need to do this query. There is an Issue logged to ask for that, that has not had response for 2 years in the GitHub Repository.
Given that you can't use config to do it, here is another way to get the informaion.
Using the AWS CLI and PowerShell the following script will get you the list of listeners associated with a load balancer and the SslPolicy
they used.
$loadbalancers = ((aws elbv2 describe-load-balancers) | ConvertFrom-Json).LoadBalancers
$SslList = @()
foreach ($loadbalancer in $loadbalancers) {
$listeners = ((aws elbv2 describe-listeners --load-balancer-arn $loadbalancer.LoadBalancerArn) | ConvertFrom-Json).Listeners
foreach ($listener in $listeners) {
$SslList += $listener | Select-Object LoadBalancerArn, ListenerArn, SslPolicy
}
}
$SslList | ConvertTo-Json
回答済み 1年前
0
Thx for your answer. I wrote the same kind of script with Python. It's a shame that AWS doesn't support listeners attributes.
Best regards
Benoit
回答済み 1年前
関連するコンテンツ
- AWS公式更新しました 2年前
- AWS公式更新しました 3年前