To create AWS Lambda function, it's required to provide a zip package with function code.
AWS Lambda functions with a provided runtime expects that package contains
executable bootstrap
file in the root of the zip archive. bootstrap
is an
entry point for a provided runtime. When AWS Lambda container boots, bootstrap
file is executed to start a provided with a package runtime.
In the current implementation erllambda
provides a
script, which can be used as an entry point to boot OTP
release.
It might be used by other projects (like rebar3 erllambda plugin) as a bootstrap
file. Other projects (like mix erllambda plugin) might have a custom bootstrap
file.
erllambda
does not require runtime to be started using the start script in the repository.
erllambda
doesn't know how to build a zip package.
There are currently 2 projects that help with packaging:
- Plugin for
rebar3
rebar3_erllambda mix
task mix_erllambda
Created packages should be suitable for deployment as AWS Lambda functions with provided environment.
For further details please see documentations of mentioned projects.
See basic deployment example.