I’m trying to upgrade to Jets v3.x and Ruby 2.7 but my current functions rely on having both
curl available in the runtime environment. The new Ruby 2.7 Lambda runtime is based on the AWS Linux 2 AMI which annoyingly has removed these binaries.
So I seem to have 2 options:
- Introduce the required binaries via a Lambda layer
- Create my own custom Lambda runtime with built-in support
I’m struggling to find any details for either of these options. There are hundreds of tutorials about creating a Lambda layer for 3rd-party libraries (e.g.
imagemagick) but none for basic low-level utils like tar/curl/gzip etc.
I also cannot find anything in the Jets docs which talk about using custom Lambda runtimes, as I could easily build my own runtime - but I have no idea how to make Jets use it.
Any help here would be greatly appreciated.