Skip to content

Commit b548059

Browse files
author
Hervé Lee
committed
Add log messages in deploy_lambda_function()
1 parent 4605aa9 commit b548059

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

entrypoint.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,11 @@ deploy_lambda_function()
102102
aws s3 cp "$archive" "$s3_url"
103103
if aws lambda get-function --function-name "${INPUT_NAME}" >/dev/null 2>&1
104104
then
105+
log "Updating lambda function code: ${INPUT_NAME}"
105106
aws lambda update-function-code \
106107
--architectures "$INPUT_ARCHITECTURES" \
107-
--function-name "$INPUT_NAME" \
108-
--zip-file "fileb://$archive"
108+
--function-name "$INPUT_NAME" \
109+
--zip-file "fileb://$archive"
109110
opts=
110111
if [ -n "$INPUT_LAYERS" ]; then
111112
layers=$(list_layer_version_arns "$INPUT_LAYERS")
@@ -122,6 +123,8 @@ deploy_lambda_function()
122123
sleep 1
123124
done
124125
aws lambda publish-function "$INPUT_NAME"
126+
else
127+
log "No lambda function found: $INPUT_NAME"
125128
fi
126129
rm -f -- "$archive"
127130
trap - EXIT

0 commit comments

Comments
 (0)