ƛ📦 AWS Lambdas containers and Go

TL;DR AWS official base images for lambdas ship entire distros, use scratch or distroless base images for statically compiled languages like Go and use the aws-lambda-runtime-interface-emulator as the entrypoint. Intro In December 2020, AWS announced support for packaging and running lambdas in containers. In this blog post I’ll try to dig a little bit deeper on how it works and how we can improve what’s described in the official article, so that we can run an example Go application as a Dockerised lambda both on AWS and locally in the most space efficient way. ...

March 13, 2021 · 4 min · 759 words