Skip to content

Commit

Permalink
Merge pull request #3 from filipall/Fix_include_only_content_of_src_l…
Browse files Browse the repository at this point in the history
…ambdas_not_folders

Include all files in src/lambdas folder but not the path in the zip
  • Loading branch information
filipall authored Jun 15, 2020
2 parents d2eff7e + 31af567 commit 43d6e6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ publish_dependencies_as_layer(){

publish_function_code(){
echo "Deploying the code itself..."
zip -r code.zip . -i src/lambdas/* -x \*.git\*
cd src/lambdas
zip -r ../../code.zip *
cd ../..
aws lambda update-function-code --function-name "${INPUT_LAMBDA_FUNCTION_NAME}" --zip-file fileb://code.zip
}

Expand Down

0 comments on commit 43d6e6b

Please sign in to comment.