OCaml runtime for AWS Lambda
- OCaml 4.07
- opam
- dune
- Docker
- an AWS account
Make sure Docker is installed and run build.sh
.
On the first run the build process is going to take a while to prepare a Docker container with the OCaml environment.
Once the build is done a bootstrap.zip
archive containing the runtime is produced.
From the AWS Lambda console create a new function.
Select Author from scratch and Provide your own bootstrap as Runtime.
Finally in the Function code panel upload the bootstrap.zip
archive and Save the function.