Skip to content

Support customer-managed runtimes - #511

Merged
GrahamCampbell merged 3 commits into
4.xfrom
customer-managed-runtimes
Nov 19, 2026
Merged

GrahamCampbell merged 3 commits into
4.xfrom
customer-managed-runtimes

Conversation

@mnapoli

@mnapoli mnapoli commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

AWS Lambda now supports customer-managed runtimes. A function uses one by setting Runtime: custom and a RuntimeConfig with the runtime ARN and an alias name.

This lets runtime (at provider or function level) take the ARN of a runtime alias (e.g. arn:aws:lambda:eu-west-3:649250387802:runtime/php-85/alias/4):

provider:
  runtime: arn:aws:lambda:us-east-1:111122223333:runtime/my-runtime/alias/production

It compiles to:

Runtime: custom
RuntimeConfig:
  RuntimeArn: arn:aws:lambda:us-east-1:111122223333:runtime/my-runtime
  RuntimeAlias: production

A runtime ARN without an alias is rejected by the schema, because CloudFormation requires both. invoke local explains that it doesn't support these runtimes instead of trying to run a Docker image named after the ARN. Layers' compatibleRuntimes keep the list of AWS runtime identifiers.

Tested with a real deployment in eu-west-3 (deploy, invoke, deploy function, remove) with a runtime from the same account.

@mnapoli mnapoli self-assigned this Nov 18, 2026
@mnapoli
mnapoli marked this pull request as draft November 18, 2026 19:58
@mnapoli
mnapoli marked this pull request as ready for review November 18, 2026 20:03
@GrahamCampbell
GrahamCampbell merged commit fb82162 into 4.x Nov 19, 2026
8 checks passed
@GrahamCampbell
GrahamCampbell deleted the customer-managed-runtimes branch November 19, 2026 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants