LambdaBase v1.3.4 mix lambda.release View Source
Create zip file for AWS Lamdba with custom runtime.
Run this task inside Docker image amazonlinux:2.0.20200722.0
.
Docker image erintheblack/elixir-lambda-builder:al2_1.10.4
is prepared to build.
How to build
$ docker run -d -it --rm --name elx erintheblack/elixir-lambda-builder:al2_1.10.4
$ docker cp mix.exs elx:/tmp
$ docker cp lib elx:/tmp
$ docker exec elx /bin/bash -c "mix deps.get; MIX_ENV=prod mix lambda.release"
$ docker cp elx:/tmp/${app_name}-${version}.zip .
$ docker stop elx
Lambda setting
- Set
Module Name
tohandler
. - Set Log level to
environment
->LOG_LEVEL
Link to this section Summary
Link to this section Functions
Create zip file for AWS Lamdba with custom runtime.