File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,20 +16,27 @@ install_zip_dependencies(){
1616
1717publish_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
2528publish_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
3136update_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
You can’t perform that action at this time.
0 commit comments