Skip to content

Commit 6e9ce7d

Browse files
authored
Update entrypoint.sh
1 parent 7f56bd7 commit 6e9ce7d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

entrypoint.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,27 @@ install_zip_dependencies(){
1616

1717
publish_dependencies_as_layer(){
1818
echo "Publishing dependencies as a layer..."
19+
echo "lambda function layer arn"
20+
echo ${INPUT_LAMBDA_LAYER_ARN}
1921
local result=$(aws lambda publish-layer-version --layer-name "${INPUT_LAMBDA_LAYER_ARN}" --zip-file fileb://dependencies.zip)
2022
LAYER_VERSION=$(jq '.Version' <<< "$result")
23+
echo ${LAYER_VERSION}
2124
rm -rf python
2225
rm dependencies.zip
2326
}
2427

2528
publish_function_code(){
2629
echo "Deploying the code itself..."
30+
echo "lambda function name"
31+
echo ${INPUT_LAMBDA_FUNCTION_NAME}
2732
zip -r code.zip . -x \*.git\*
2833
aws lambda update-function-code --function-name "${INPUT_LAMBDA_FUNCTION_NAME}" --zip-file fileb://code.zip
2934
}
3035

3136
update_function_layers(){
3237
echo "Using the layer in the function..."
38+
echo "lambda function name"
39+
echo ${INPUT_LAMBDA_FUNCTION_NAME}
3340
aws lambda update-function-configuration --function-name "${INPUT_LAMBDA_FUNCTION_NAME}" --layers "${INPUT_LAMBDA_LAYER_ARN}:${LAYER_VERSION}"
3441
}
3542

0 commit comments

Comments
 (0)