mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
changed outputs to the new ones
This commit is contained in:
@@ -10,12 +10,12 @@ check22(){
|
||||
for trail in $LIST_OF_TRAILS;do
|
||||
LOGFILEVALIDATION_TRAIL_STATUS=$($AWSCLI cloudtrail describe-trails $PROFILE_OPT --region $REGION --query 'trailList[*].LogFileValidationEnabled' --output text --trail-name-list $trail)
|
||||
if [[ "$LOGFILEVALIDATION_TRAIL_STATUS" == 'False' ]];then
|
||||
textWarn "$trail trail in $REGION has not log file validation enabled"
|
||||
textFail "$trail trail in $REGION has not log file validation enabled"
|
||||
else
|
||||
textOK "$trail trail in $REGION has log file validation enabled"
|
||||
textPass "$trail trail in $REGION has log file validation enabled"
|
||||
fi
|
||||
done
|
||||
else
|
||||
textWarn "No CloudTrail trails found!"
|
||||
textFail "No CloudTrail trails found!"
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user