Bun on Lambda: customer-managed runtime by default, 85 kB instead of 51 MB
In the last post I wrote that I am going to update @beesolve/lambda-bun-runtime to use customer-managed runtimes (CMR). It is done. BunFunction now runs on a Bun runtime that I publish for every release, and the npm package went from about 51 MB to about 85 kB unpacked, because the layer zip is no longer inside it.
This is a major version (v4) with breaking changes, so here is what changed, what stayed, and what your options are.
