Skip to content

Latest commit

 

History

History

elixir

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Running Elixir in AWS Lambda

You can run Elixir on AWS Lambda via SCAR using the grycap/elixir Docker image, based on the bitnami/minideb:jessie one.

Usage in AWS Lambda via SCAR

You can run a container out of this image on AWS Lambda via SCAR using the following procedure:

  1. Create the Lambda function
scar init -f scar-elixir.yaml
  1. Execute the Lambda function with an script to compile and run an Erlang application
scar run -f scar-elixir.yaml -s elixir-hw.sh 

The first invocation will take considerably longer than the subsequent ones, where the container will be cached. You can modify the script and perform another scar run.

You can also run multiple concurrent invocations of this Lambda function to perform highly-parallel event-driven processing. See the SCAR Programming Model.