Skip to content

Commit

Permalink
Add log messages in deploy_lambda_function()
Browse files Browse the repository at this point in the history
  • Loading branch information
Hervé Lee committed Dec 28, 2021
1 parent 4605aa9 commit 2f4540e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ deploy_lambda_function()
aws s3 cp "$archive" "$s3_url"
if aws lambda get-function --function-name "${INPUT_NAME}" >/dev/null 2>&1
then
log "Updating lambda function code: ${INPUT_NAME}"
aws lambda update-function-code \
--architectures "$INPUT_ARCHITECTURES" \
--function-name "$INPUT_NAME" \
Expand All @@ -122,6 +123,8 @@ deploy_lambda_function()
sleep 1
done
aws lambda publish-function "$INPUT_NAME"
else
log "No lambda function found: $INPUT_NAME"
fi
rm -f -- "$archive"
trap - EXIT
Expand Down

0 comments on commit 2f4540e

Please sign in to comment.