mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
fixed region for extra757 and extra758
This commit is contained in:
@@ -28,13 +28,13 @@ extra757(){
|
||||
do
|
||||
EC2_ID=$(echo "$ec2_instace" | awk '{print $1}')
|
||||
LAUNCH_DATE=$(echo "$ec2_instace" | awk '{print $2}')
|
||||
textFail "$regx: EC2 Instance $EC2_ID running before than $OLDAGE"
|
||||
textFail "$regx: EC2 Instance $EC2_ID running before than $OLDAGE" "$regx"
|
||||
done <<< "$INSTACES_OLD_THAN_AGE"
|
||||
else
|
||||
textPass "All Instances newer than 6 months"
|
||||
textPass "$regx: All Instances newer than 6 months" "$regx"
|
||||
fi
|
||||
else
|
||||
textInfo "No EC2 Instances Found"
|
||||
textInfo "$regx: No EC2 Instances Found" "$regx"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
@@ -28,13 +28,13 @@ extra758(){
|
||||
do
|
||||
EC2_ID=$(echo "$ec2_instace" | awk '{print $1}')
|
||||
LAUNCH_DATE=$(echo "$ec2_instace" | awk '{print $2}')
|
||||
textFail "$regx: EC2 Instance $EC2_ID running before than $OLDAGE"
|
||||
textFail "$regx: EC2 Instance $EC2_ID running before than $OLDAGE" "$regx"
|
||||
done <<< "$INSTACES_OLD_THAN_AGE"
|
||||
else
|
||||
textPass "All Instances newer than 12 months"
|
||||
textPass "$regx: All Instances newer than 12 months" "$regx"
|
||||
fi
|
||||
else
|
||||
textInfo "No EC2 Instances Found"
|
||||
textInfo "$regx: No EC2 Instances Found" "$regx"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user