Score:0

list the Load balancer

us flag

I am trying to list all the load balancers in a text file with tag deletion protection enabled but seems to be having issues.

$loadbalancers = aws alb describe-load-balancers --query 'LoadBalancers[*].[LoadBalancerName,DNSName,LoadBalancerArn]' --output text

foreach ($alb in $loadbalancers ) {
aws alb describe-load-balancers-attribute --loadbalancers $alb --attributes Key=deletion_protection.enabled,Value=true --output text >> alb.txt }

I am able to pull up list of all the load balancers. Can someone please help

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.