LambdaBase v1.1.6 mix lambda.release View Source

Create zip file for AWS Lamdba with custom runtime.

Run this task inside Docker image amazonlinux:2017.03.1.20170812.

Docker image erintheblack/elixir-lambda-builder:20200112.01 is prepared to build.

How to build

$ docker run -d -it --rm --name elx erintheblack/elixir-lambda-builder:1.10.0
$ docker cp ${project} elx:/tmp
$ docker exec elx /bin/bash -c "cd /tmp/${project}; mix deps.get; MIX_ENV=prod mix lambda.release"
$ docker cp elx:/tmp/${app_name}-${version}.zip .

Lambda setting

  • Set Module Name to handler.
  • Set Log level to environment -> LOG_LEVEL

Link to this section Summary

Functions

Create zip file for AWS Lamdba with custom runtime.

Link to this section Functions

Create zip file for AWS Lamdba with custom runtime.