Packages your python lambdas.
Run the container like this to create a zip file for uploading to AWS lambda:
docker run \
-u "${EUID}" \ # <-- this makes sure the resulting zip file is owned by you (and not by root)
-v ${PWD}:/workdir \ # <-- this mounts your aws credentials inside the container's home dir
felixb/aws-lambda-packager
You might want to add the following function to your .bashrc or similar to allow even easier usage:
function package_python_lambda() {
docker run \
--rm \
-u "${EUID}" \
-v ${PWD}:/workdir \
felixb/aws-lambda-packager
}
Set LAMBDA_NAME environment variable to configure your output file name like this:
docker run -e LAMBDA_NAME=some-lambda ...
Content type
Image
Digest
Size
35.9 MB
Last updated
over 8 years ago
docker pull felixb/aws-lambda-packager