Fixed new API Gateway checks alias

This commit is contained in:
Toni de la Fuente
2019-05-13 16:30:03 -04:00
parent 3582b424b0
commit 967fe029c2
3 changed files with 5 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ CHECK_ID_extra744="7.44"
CHECK_TITLE_extra744="[extra744] Check if API Gateway has a WAF ACL attached (Not Scored) (Not part of CIS benchmark)"
CHECK_SCORED_extra744="NOT_SCORED"
CHECK_TYPE_extra744="EXTRA"
CHECK_ALTERNATE_check743="extra744"
CHECK_ALTERNATE_check744="extra744"
extra744(){
for regx in $REGIONS; do
@@ -26,9 +26,9 @@ extra744(){
for stage in $LIST_OF_STAGES; do
CHECK_WAFACL=$($AWSCLI $PROFILE_OPT --region $regx apigateway get-stages --rest-api-id $api --query "item[?stageName==\`$stage\`].webAclArn" --output text)
if [[ $CHECK_WAFACL ]]; then
textPass "$regx: API ID $api in $stage has $CHECK_WAFACL WAF ACL attached" "$regx"
textPass "$regx: API Gateway ID $api in $stage has $CHECK_WAFACL WAF ACL attached" "$regx"
else
textFail "$regx: API ID $api in $stage has not WAF ACL attached" "$regx"
textFail "$regx: API Gateway ID $api in $stage has not WAF ACL attached" "$regx"
fi
done
fi

View File

@@ -14,7 +14,7 @@ CHECK_ID_extra745="7.45"
CHECK_TITLE_extra745="[extra745] Check if API Gateway endpoint is public or private (Not Scored) (Not part of CIS benchmark)"
CHECK_SCORED_extra745="NOT_SCORED"
CHECK_TYPE_extra745="EXTRA"
CHECK_ALTERNATE_check743="extra745"
CHECK_ALTERNATE_check745="extra745"
extra745(){
for regx in $REGIONS; do

View File

@@ -14,7 +14,7 @@ CHECK_ID_extra746="7.46"
CHECK_TITLE_extra746="[extra746] Check if API Gateway has configured authorizers (Not Scored) (Not part of CIS benchmark)"
CHECK_SCORED_extra746="NOT_SCORED"
CHECK_TYPE_extra746="EXTRA"
CHECK_ALTERNATE_check743="extra746"
CHECK_ALTERNATE_check746="extra746"
extra746(){
for regx in $REGIONS; do