LambdaBase v1.0.2 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 --name elx erintheblack/elixir-lambda-builder:20200112.01
$ docker cp ${project} elx:/tmp
$ docker exec elx /bin/bash -c "cd /tmp/${project}; mix deps.get; mix lambda.release"
$ docker cp elx:/tmp/${app_name}.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.