Clean up redentials report output

This commit is contained in:
Toni de la Fuente
2021-08-10 14:02:21 +02:00
parent 62050e2e34
commit c6203bf9e3

View File

@@ -13,7 +13,7 @@
# Generate Credential Report
genCredReport() {
textTitle "0.1" "Generating AWS IAM Credential Report..." "NOT_SCORED" "SUPPORT"
textTitle "" "Generating AWS IAM Credential Report..."
for i in $(seq 1 60); do
GENERATECREDENTIALREPORTOUTPUT=$($AWSCLI iam generate-credential-report --output text --query 'State' $PROFILE_OPT --region $REGION 2>&1)
if [[ $(echo "$GENERATECREDENTIALREPORTOUTPUT" | grep AccessDenied) ]]; then