Skip to content

Commit

Permalink
Include all files in src/lambdas folder but not the path in the zip
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Allard committed Jun 15, 2020
1 parent cb9f046 commit 31af567
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 31af567

Please sign in to comment.