From a0c44ef0bebc4c83823180a1e25f6cd92a07879d Mon Sep 17 00:00:00 2001 From: Mariusz B Date: Wed, 15 Apr 2020 12:40:42 +0200 Subject: [PATCH] Update evaluate-iam-role.sh --- clouds/aws/evaluate-iam-role.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clouds/aws/evaluate-iam-role.sh b/clouds/aws/evaluate-iam-role.sh index 817d08c..b2c28ad 100755 --- a/clouds/aws/evaluate-iam-role.sh +++ b/clouds/aws/evaluate-iam-role.sh @@ -184,7 +184,7 @@ if [[ "$ROLE_NAME" == "all" ]]; then echo "[+] Evaluating ALL used IAM Roles" echo - out=($(aws --profile awl iam list-roles --query 'Roles[*].RoleName' --output text | tr '\t' '\n')) + out=($(aws --profile $PROFILE iam list-roles --query 'Roles[*].RoleName' --output text | tr '\t' '\n')) for role in "${out[@]}"; do examine_role $role