From 441dc119630ffe584320822b640d02db82bbf94f Mon Sep 17 00:00:00 2001 From: Jan Sepke <625043+jansepke@users.noreply.github.com> Date: Fri, 28 Jan 2022 11:01:32 +0100 Subject: [PATCH] Fix issue #1002 (#1007) regression in extra793 Co-authored-by: Jan Sepke --- checks/check_extra793 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checks/check_extra793 b/checks/check_extra793 index 425cf6a3..6f9e0efa 100644 --- a/checks/check_extra793 +++ b/checks/check_extra793 @@ -32,7 +32,7 @@ extra793(){ textInfo "$regx: Access Denied trying to describe load balancers" "$regx" continue fi - LIST_OF_ELBSV2=$($AWSCLI elbv2 describe-load-balancers $PROFILE_OPT --region $regx --query 'LoadBalancers[*].LoadBalancerArn' --output text 2>&1|xargs -n1) + LIST_OF_ELBSV2=$($AWSCLI elbv2 describe-load-balancers $PROFILE_OPT --region $regx --query 'LoadBalancers[?(Type == `application`)].LoadBalancerArn' --output text 2>&1|xargs -n1) if [[ $(echo "$LIST_OF_ELBSV2" | grep -E 'AccessDenied|UnauthorizedOperation|AuthorizationError') ]]; then textInfo "$regx: Access Denied trying to describe load balancers" "$regx" continue