terraform.aws-baseline-infra/modules/util/resource-list/list-nlb.sh

3 lines
227 B
Bash
Raw Normal View History

#!/bin/bash
RESULTS=$(aws elbv2 describe-load-balancers --query 'LoadBalancers[?Type==`network`].LoadBalancerArn' --output text --no-cli-pager | sed 's/\t/\n/g' | sort | xargs)
jq -n --arg result "$RESULTS" '{"result":$result}'