Skip to content

Commit

Permalink
statuscode jq change
Browse files Browse the repository at this point in the history
  • Loading branch information
mojotalantikite committed Jul 19, 2023
1 parent 31511d6 commit 24324b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/app-api/scripts/invoke-migrate-lambda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ error_message="${3:-}"
cli_read_timeout=240

if (set -x ; aws lambda invoke --qualifier "$lambda_version" --cli-read-timeout "$cli_read_timeout" --function "$function_name" lambda_response.json) ; then
exitCode="$(jq '.statusCode' < lambda_response.json)"
exitCode="$(jq '.StatusCode' < lambda_response.json)"
if [[ "$exitCode" != 200 ]] ; then
cat lambda_response.json
echo "$error_message" 1>&2
Expand Down

0 comments on commit 24324b0

Please sign in to comment.