Elixir, AWS Lambda and Ecto

Anyone got Elixir + Ecto working on AWS Lambda. The simple hello-world works but once I add in Ecto to the mix it keeps complaining of

load_failed,“Failed to load NIF library: ‘//lib64/libcrypto.so.10: version `OPENSSL_1.0.2’ not found (required by /var/task/lib/crypto-4.4/priv/lib/crypto.so)’”,“OpenSSL might not be installed on this system.\n”

I struggled with lambda and sql/aurora until I found you needed the lambda to be in a VPC which adds significant cold start time. Not sure this is a solved problem yet.

1 Like

You will need to add the appropriate libraries - looks like OpenSSL, perhaps as lambda layers.

1 Like

I tried to use lambci / docker-lambda to install elixir and then compile, seems it’s works