DEV Community

Damien Gallagher
Damien Gallagher

Posted on

Lambda customer-managed runtimes: one runtime, zero per-function redeploys

TL;DR

  • What: Lambda customer-managed runtimes. You build the runtime as an OCI image in ECR, and functions pick up updates without a redeploy.
  • Who: Platform teams running lots of Event Functions. Not Web Functions.
  • Status: GA since 18 Nov 2026, all commercial AWS Regions.
  • Price: No extra Lambda charge. You pay ECR storage for the images.
  • Watch: You now own patching, and publishers can run code in your functions.
  • Verdict: Good fit for platform teams, overkill for everyone else.

Contents


The problem it targets

Say your organisation wants every function to carry the same security agent, the same certificates and the same monitoring extension. Today you have two options. Layers, where a change means redeploying every function. Or container images, where every team learns Dockerfiles and rebuilds to patch anything. The launch post says as much.

Customer-managed runtimes split that job in two. A publisher owns the runtime. Consumers keep deploying .zip files. The What's New post went out on 18 November 2026, and it also renames the old "custom runtimes" feature to "bring your own language" (BYOL).

Everything below is from the docs and launch post. I haven't run any of it.


How it works

There are three resource types, per the developer guide:

  • Runtime: the top-level resource, with a name, an ARN and a description. Access is controlled at this level with a resource-based policy.
  • Runtime version: immutable, backed by one ECR image.
  • Runtime alias: a named pointer to a version. Functions consume the runtime through an alias.

To ship an update you publish a new version and move the alias. By default, functions move to the new version at their next cold start. Running environments keep the old version until Lambda replaces them, so during a rollout both versions can serve traffic.

Management uses the Lambda Core API, aws lambda-core in the CLI. The launch post shows the shape of it:

aws lambda-core create-runtime-version \
    --runtime-name my-runtime \
    --name v2 \
    --image-uri 111122223333.dkr.ecr.us-east-1.amazonaws.com/my-runtime:v2
aws lambda-core update-runtime-alias \
    --runtime-name my-runtime \
    --name production \
    --runtime-version v2
Enter fullscreen mode Exit fullscreen mode

The image needs OS libraries, language support, a bootstrap and a runtime interface client. The image-building page gives three routes: start from a Lambda base image, build from scratch with an open-source Lambda RIC, or write your own RIC for a language Lambda doesn't support. Lambda's service principal needs read access to your ECR repository. The tutorial shows a repository policy with ecr:BatchGetImage, ecr:DescribeImages and ecr:GetDownloadUrlForLayer.

One detail I like: the image's CMD is ignored, unlike container image functions. Handler format is the publisher's call.


Facts at a glance

Item What the docs say
Announced 18 Nov 2026
Status Generally available
Regions All commercial AWS Regions
Function types Event Functions only, not Web Functions
Not supported SnapStart, Lambda@Edge
Publisher limits No KMS customer managed key for runtime resources, no code signing of runtime images, no SAM for publishing
Extra Lambda charge None
Other cost Standard ECR storage per version image

Sources: developer guide, What's New.

Pricing, as of 2026-11-28: the Lambda pricing page says there's no additional Lambda charge, functions are billed at standard Event Functions rates for requests and duration, and the only extra cost is ECR storage. It also says there's no data transfer charge between ECR and Lambda. I'm not quoting per-GB-second rates here. Check the page.


Limits and quotas

Per Region, per account, from the quotas page:

  • Runtimes: 100 (adjustable)
  • Runtime versions per runtime: 200 (adjustable)
  • Runtime aliases per runtime: 100 (adjustable)
  • Runtime write API rate: 10 requests per second (adjustable)
  • Runtime read API rate: 100 requests per second (adjustable)
  • Runtime image size: 10 GB uncompressed, all layers included (not adjustable)

Things scheduled for deletion still count against those quotas. Runtimes are Regional, so you repeat the setup in every Region you use. The launch post suggests consistent names across Regions, ECR cross-Region replication, and alias updates one Region at a time.


What this means for you

Who should care. Platform teams managing thousands of functions. Also SaaS vendors who want control over what runs in customer functions, anyone wanting PHP, Bun or R on Lambda with .zip deploys, and teams who need to keep patching a runtime after Lambda deprecates it. If you run a handful of functions, stay on managed runtimes. The launch post itself says managed runtimes remain the right choice for many customers.

What gets simpler.

  • Shared component changes become one alias move, not N redeploys.
  • Rollback is the same move in reverse.
  • Developers still deploy .zip files and never touch the images.
  • Consumers can roll back too. Manual mode pins a function to a version. Function update mode applies runtime changes only when they deploy.

What gets more complex. You now own all runtime patching. If you build from a Lambda base image, you rebuild to pick up AWS's patches. Updates must stay backward compatible. You also own deprecation and telling consumers about it, because Lambda doesn't notify them of lifecycle changes.

Cost. Nothing extra from Lambda. ECR storage applies for every version while it exists, so prune old versions you no longer need. That's my advice, not the docs'.

Consumer config

Based on the docs, not tested by me. This is the CloudFormation example from the consumer guide, trimmed:

Resources:
  Function:
    Type: AWS::Lambda::Function
    Properties:
      Runtime: custom
      RuntimeConfig:
        RuntimeArn: arn:aws:lambda:us-east-1:123456789012:runtime/companyphp8
        RuntimeAlias: prod
      Handler: index.handler
      Architectures:
        - x86_64
      Role: !Ref ExecutionRoleArn
      Code:
        S3Bucket: !Ref CodeBucket
        S3Key: function.zip
Enter fullscreen mode Exit fullscreen mode

Notes from the docs: Runtime must be custom when RuntimeConfig is set, you pass the runtime ARN (not the alias ARN), and CloudFormation inline ZipFile only works for Node.js and Python, so use S3.

Infrastructure as code

The What's New post says you can manage runtimes with the CLI, SDKs, CloudFormation or CDK. The docs I read only show CloudFormation for the function side. I didn't find resource type names for the runtime, version or alias resources in the pages I read, so I'm not stating them. SAM can't publish or update runtimes.

Pitfalls

  • Trust. A publisher can push code into your execution environments, running with your function's execution role. The docs say to use only publishers you trust. For third-party runtimes, copy their images into your own ECR and build your own runtime.
  • Deletion. If an alias or version a function uses is deleted, the function goes Inactive with StateReasonCode of InvalidRuntime. Warm environments keep working. Cold starts fail. Deletion is scheduled with a 7 to 30 day wait (default 30), per the launch post.
  • Feature support. Lambda Managed Instances needs a label on the image. Response streaming needs the runtime to implement it. Check before you promise teams anything.
  • Cross-account. Both a resource-based policy on the runtime and an identity-based policy granting lambda:AssociateRuntimeAlias are needed. SCPs can restrict which runtimes your organisation allows.
  • Observability. CloudWatch gets RuntimeInvocations and RuntimeInvocationErrors in the publisher's account. The launch post suggests an alarm on each alias's error rate and a pipeline that halts when it fires. The INIT_START log line shows the runtime version in use.

Combining with other things

ECR is the obvious partner: use your normal image scanning and CI/CD. Organizations plus SCPs handle the governance side. Layers and extensions still work, and your own extensions run alongside the runtime's.

What I'd do first

  1. Pick one low-risk function group and a dev and prod alias pair.
  2. Build from a Lambda base image, not from scratch.
  3. Set the alarm before the first alias move.
  4. Decide who tells consumers about deprecations. Lambda won't.

Open question: with Auto mode as the default, would you let a central team move a prod alias across all your accounts without a Function update gate? I'm not sure I would.


Related posts


Sources

Drafted with AI assistance. I review and edit every post.

Top comments (0)