Skip to content

Commit

Permalink
Added extra743 API Gateway has client certificate enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni de la Fuente committed May 7, 2019
1 parent 1b4045d commit d078985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks/check_extra743
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extra743(){
LIST_OF_STAGES=$($AWSCLI $PROFILE_OPT --region $regx apigateway get-stages --rest-api-id $api --query 'item[*].stageName' --output text)
if [[ $LIST_OF_STAGES ]]; then
for stage in $LIST_OF_STAGES; do
CHECK_CERTIFICATE=$($AWSCLI $PROFILE_OPT --region $regx apigateway get-stages --rest-api-id $api --query 'item[?stageName==`$stage`].clientCertificateId' --output text)
CHECK_CERTIFICATE=$($AWSCLI $PROFILE_OPT --region $regx apigateway get-stages --rest-api-id $api --query "item[?stageName==\`$stage\`].clientCertificateId" --output text)
if [[ $CHECK_CERTIFICATE ]]; then
textPass "$regx: API ID $api in $stage has client certificate enabled" "$regx"
else
Expand Down

0 comments on commit d078985

Please sign in to comment.