Customer-Managed Runtimes on AWS Lambda - How an Alias Update Reaches a Function and Who Owns the Patch

First Published:
Last Updated:

Customer-managed runtimes on AWS Lambda became generally available on November 18, 2026. This feature allows platform teams within organizations to bundle a specific language version, shared libraries, certificates, and monitoring tools into a single runtime. When the runtime alias is updated to a new version, functions using that runtime will, by default, begin using the new version without requiring a redeployment.

However, updating the alias does not immediately cause all functions to operate with the new version. Functions will begin using the new version from their next cold start; execution environments that are currently running will continue to use the old version until Lambda replaces them. Depending on the update mode configured for each function, the new version may not reach the function until it is updated or the consumer removes the pin. During this period, responsibility for applying security patches falls on the runtime publisher, not AWS Lambda. Lambda does not patch or test customer-managed runtimes.

This article details how a single runtime update reaches specific functions, when it reaches them, and through what mechanisms. It also clarifies who is responsible for patching during this process, based on AWS documentation. In addition, this article presents observations from a demonstration where a single alias update was applied to functions configured with three different update modes. This article is based on the documentation read and the demonstration observed on November 30, 2026 (the first day of re:Invent 2026). This article does not cover pricing or language selection.

Related articles on this site:

Table of Contents

  1. 1. Scope and Assumptions
  2. 2. How a Runtime Alias Update Reaches Functions
  3. 3. Three Update Modes for Functions
  4. 4. Who is Responsible for Patches?
  5. 5. Distribution and When Permissions Are Checked
  6. 6. Checking Which Version is Being Used
  7. 7. When Updates Are Not Received
  8. 8. Differences Between Lambda-Managed Runtime, OS-Only Runtime, and BYOL
  9. 9. Demo: Applying a Single Alias Update Across Three Update Modes
  10. 10. Frequently Asked Questions about Customer-Managed Runtimes
  11. 11. Summary
  12. 12. References

1. Scope and Assumptions

This chapter first defines the intended audience for this article, the scope of its content, the referenced materials, the notation used, and the terminology employed. The following ten points summarize the key conclusions:

  • When a runtime alias is pointed to a new version, functions configured with the Auto update mode will use the new version on their next cold start. No function redeployment is required (see Chapter 2).
  • Running execution environments stay on the old version until Lambda replaces them. The documentation does not specify how long this replacement takes. Updates roll out gradually, and during that period, different versions may handle calls to the same function (see Section 2.3).
  • Customer-managed runtimes do not use the two-phase rollout used by Lambda-managed runtimes. The publisher creates the stages instead, by alias and by Region (see Section 2.4).
  • Functions in FunctionUpdate mode resolve the alias only when the function is created or updated. Functions in Manual mode ignore the alias and keep using the pinned version. Functions in Manual mode will not receive security patches (see Chapter 3).
  • Lambda does not patch or test customer-managed runtimes, and it does not send notifications about lifecycle changes. Rebuilding from the base image, releasing new versions, updating aliases, and notifying consumers are the responsibilities of the publisher (see Chapter 4).
  • Publishers can inject arbitrary code into the execution environments of functions that use a customer-managed runtime. This code runs with the permissions of the function's execution role (see Section 4.5).
  • Lambda only checks the consumer's permissions when a function is created, when its runtime configuration changes, and when it is pinned to a version. Even if the publisher later revokes access, existing functions keep running and keep receiving alias updates (see Section 5.4).
  • Metrics in the publisher's account provide visibility into which versions are being used. Invocations of functions pinned to a version are not counted in the alias dimension (see Chapter 6).
  • When a publisher deletes the alias, version, or ECR image used by a function, the function becomes Inactive. Existing environments continue to respond, but invocations that require a cold start fail (see Chapter 7).
  • The earlier custom runtime approach is now called bring your own language. Lambda continues to support this approach, and the documentation recommends customer-managed runtimes for many use cases (see Chapter 8).

1.1 Intended Audience

This article is intended for the following audiences:

  • Platform teams within organizations who want to manage Lambda runtimes (language versions, internal common libraries, and OS patches) in a single location.
  • Function owners who use those runtimes.
  • People who handle questions such as "The alias points to the new version, so why do I still get responses from the old one?" or "How far am I responsible for patches?"

1.2 Scope of this Article

This article addresses the following topics: the path by which runtime updates reach functions, the update modes available to functions, the delineation of patch responsibilities, how runtimes are distributed and when permissions are checked, the visibility of versions, the circumstances under which updates cease to be delivered, and the differences from existing methods.

This article does not cover:

  • How to create runtime images. The demonstration image was created by simply adding a single marker file to a base image.
  • Language selection.
  • The underlying mechanisms of the execution environment. This is covered on this site in How AWS Lambda Execution Environments Work.
  • A list of dates for the deprecation of runtimes managed by AWS Lambda. This is covered on this site in AWS End-of-Support and EOL Reference.
  • Methods for reducing cold starts. This article only considers cold starts as a point at which updates are received. Mitigation strategies are covered on this site in AWS Lambda Cold Start Mitigation Guide.
  • Pricing.
  • Methods for exploiting the ability of publishers to execute code within functions.

This article focuses exclusively on Lambda Event Functions. The documentation states that customer-managed runtimes cannot be used with Lambda Web Functions. Lambda SnapStart, Lambda@Edge, and functions deployed using container images also cannot use customer-managed runtimes. A Compute Blog article describes Event Functions as "formerly Lambda functions." While this article uses "Lambda functions" in the title and body, it refers specifically to Event Functions.

1.3 Checked Date and Reviewed Materials

The verification date is November 30, 2026. The publication time for the What's New article is 2026-11-18T15:00:00Z, and the article states that the customer-managed runtime is "available in all commercial AWS Regions." The entry page of the Developer Guide also states the same. Neither page mentions AWS GovCloud (US) or Regions in China.

November 30, 2026, is the first day of re:Invent 2026 (November 30 to December 4, 2026). As of December 1, 2026, there were no further updates regarding the customer-managed runtime in the Lambda section of the What's New articles. On the same day, the Developer Guide, API reference, and CloudFormation pages this article draws on were checked again, and their content had not changed. Announcements during the event may result in changes to the scope or limitations.

The following materials were reviewed for this article:

  • The customer-managed runtime chapter in the Lambda Developer Guide (including the entry page, tutorial, image creation, runtime, versions, aliases, usage, deployment, multiple Regions, sharing and permissions, monitoring, lifecycle, and deletion), along with related pages (runtime update mechanism, table of update modes and shared responsibility, bring your own language, runtime list, quotas).
  • The Lambda Core API reference, and the PutRuntimeManagementConfig and RuntimeVersionConfig pages in the Lambda API reference.
  • The AWS Lambda page in the Service Authorization Reference.
  • The AWS::Lambda::Runtime, AWS::Lambda::RuntimeVersion, and AWS::Lambda::RuntimeAlias pages in the CloudFormation Template Reference, along with the Document history.
  • The November 18, 2026, What's New article, and the "Control your AWS Lambda runtimes with customer-managed runtimes" article on the AWS Compute Blog.

The English quotes in this article were verified by comparing them to the text displayed on the HTML pages. Since the Developer Guide's Markdown version contains link formatting, that formatting was removed from the quotes.

1.4 Source Indicators

This article uses four indicators to distinguish the source of each statement.

IndicatorMeaning
StatedFound in AWS documentation.
Not statedNot found within AWS documentation. This does not constitute proof of non-existence.
InferenceDerived from multiple statements in the documentation.
ObservedObserved during the demonstration presented in this article. This represents a single recorded observation and should not be generalized.

Statements without an indicator are considered Stated.

1.5 Terminology

This article uses the following terms:

  • Runtime Alias: A name referring to a specific version of the customer-managed runtime. An example is prod. Lambda already has aliases for functions (names referring to published versions of functions). When this article uses the term "alias" without further clarification, it refers to a runtime alias.
  • Runtime Version: A specific, immutable version of the customer-managed runtime. An example is v1. Published versions of functions are referred to as "function versions," and versions of programming languages (e.g., Python 3.14) are referred to as "language versions."
  • Publisher: The entity that creates the runtime, releases versions, and manages aliases (runtime publisher).
  • Consumer: The entity that uses the runtime within its functions (runtime consumer). A single team may fulfill both roles.
  • Update Mode: A setting in the function's runtime management controls. The possible values are Auto, FunctionUpdate, and Manual. In the documentation's tables, these values are labeled "Auto," "Function update," and "Manual," respectively.

1.6 Differences from the Official Tutorial

The developer guide's tutorial moves a single function from runtime version v1 to v2. It changes the function's environment variables to start a new execution environment and checks the response of the new version. In contrast, this article's demonstration applies the same alias update to three functions with the three update modes, first creating new environments through parallel invocations without updating the functions themselves. The function updates are then performed in a subsequent step (Chapter 9).

2. How a Runtime Alias Update Reaches Functions

This chapter describes the process by which a function begins operating with a new version of a runtime alias, following the publisher's update of that alias.

2.1 Three Resources

The customer-managed runtime is composed of three types of resources.

ResourceRoleCan be Modified?
RuntimeThe parent resource representing the whole runtime. It contains information such as name, ARN, description, license, and resource-based policies.The description, license information, and release lifecycle can be modified. The name cannot be changed.
Runtime VersionThe contents of the execution environment's file system. It refers to a single Amazon ECR container image.Cannot be modified. Only the release notes can be updated.
Runtime AliasA name that refers to a specific version. Functions always use the runtime through an alias.The version it points to can be changed.

Functions are configured by setting the Runtime to custom and providing the runtime's ARN and the alias name in RuntimeConfig. The function's code is packaged as a .zip archive, just like with Lambda-managed runtimes. Consumers do not need access to the publisher's ECR image.

New versions are not used by any function until an alias points to them. The exception is functions that consumers have explicitly pinned to that version in the Manual update mode.

2.2 Using the New Version at the Next Cold Start

The Using a customer-managed runtime page of the developer guide describes the path through which updates reach functions in three sentences:

The runtime publisher releases an update by pointing a runtime alias to a new runtime version. By default, your function uses the new runtime version at its next cold start. You don't need to update or redeploy your function.

This default corresponds to the Auto update mode. The Runtime aliases page states that when an alias is directed to a different version, functions will switch to that version on the next cold start, provided the update mode is set to Auto. Functions with other update modes will not switch automatically. A table outlining the alias resolution timing for each update mode is located in Chapter 3.

2.3 Running Environments Stay on the Old Version

The page continues with the following:

Execution environments that are already running keep the previous runtime version until Lambda replaces them. Lambda replaces execution environments from time to time. As a result, an update reaches your function gradually.

The entry page states, "during a rollout, invocations can run on both versions." After the alias moves, for a period of time, existing environments process invocations of the same function on the older version, while new environments use the newer version.

The wording used to describe how often Lambda replaces environments varies across the pages. The Using a customer-managed runtime and Runtime aliases pages use the phrase "from time to time," while the Deploying runtime updates page uses "routinely," and the tutorial uses "over time." None of the pages specify how long the replacement takes (Not stated). The time observed during the demonstration presented in this article is also a single instance (Chapter 9).

The creation and reuse of execution environments are discussed in Chapter 4 and Section 7.1 of this site's How AWS Lambda Execution Environments Work.

2.4 No Two-Phase Rollout

For Lambda-managed runtimes, Lambda rolls out new runtime versions in two phases. The first phase applies the new version when a function is created or updated. The second phase updates Auto functions that are not yet on the new version. Customer-managed runtimes do not use this mechanism. Three pages – Using a customer-managed runtime, Runtime aliases, and Deploying runtime updates – all contain the same sentence.

Customer-managed runtimes don't use the two-phase rollout that Lambda uses for Lambda-managed runtimes.

The Understanding how Lambda manages runtime updates page states the same point in this sentence:

The two-phase rollout applies only to Lambda-managed runtimes.

With a customer-managed runtime, the publisher determines when aliases move. Lambda does not introduce any rollout stages.

2.5 Defining Deployment Stages: The Responsibility of the Publisher

The Deploying runtime updates page lists three methods for publishers to control the impact of updates.

  • Alias-based staging: Create stage-specific aliases, such as dev, test, and prod, and instruct consumers to use the alias that corresponds to their environment. Roll out each alias individually, allowing time to observe its behavior between updates.
  • Region-by-Region staggering: Since the runtime is Region-specific, roll out aliases on a Region-by-Region basis. Monitor the behavior in one Region before proceeding to the next.
  • Cold-start gating: Updates to aliases will not reach all functions simultaneously.

The same page recommends ensuring that the observation period is long enough for a significant number of functions to start in a new environment with the updated version. It also notes that functions in FunctionUpdate mode may move to the new version days or even weeks after an alias update.

How a Runtime Alias Update Reaches Functions
How a Runtime Alias Update Reaches Functions
Figure 1 shows when the new version reaches functions in each update mode when the alias moves from v1 to v2. The arrows represent only the point at which Lambda resolves the alias to a specific version.

3. Three Update Modes for Functions

This chapter describes three update modes that the function owner can choose, and indicates when alias updates are delivered in each mode.

3.1 Table of Three Modes

The Using a customer-managed runtime page states that the update mode is set with runtime management controls, using the same PutRuntimeManagementConfig and GetRuntimeManagementConfig APIs as Lambda-managed runtimes. The update mode determines when the alias is resolved to a version. Runtime management controls predate customer-managed runtimes and are available for Lambda-managed runtimes. Their introduction is covered in this site's AWS History and Timeline regarding AWS Lambda. Combining the table on that page with the descriptions on the lifecycle and deletion pages gives the following:

Update ModeTime of Alias ResolutionVersions ReceivedVersions Not ReceivedImpact of Block Dates
Auto (Default)Each time a cold start occursThe version of the alias that the publisher has moved to. Includes security patches.Updates are not applied to running environments until the environment is replaced.Applies
FunctionUpdateDuring function creation and updates. Includes CreateFunction, UpdateFunctionCode, and UpdateFunctionConfiguration.The version of the alias at the time of deployment.Updates to the alias between deployments.Applies
ManualDoes not resolve. The alias is ignored, and the pinned version is used.Only the pinned version.All runtime updates, including security patches.Does not apply

Block dates are dates that the publisher sets in the release lifecycle (see Section 7.1).

3.2 Auto

Auto is the default setting. The Using a customer-managed runtime page recommends Auto for many functions, noting that functions receive runtime updates from the publisher, including security patches.

Like $LATEST, the published version of a function also follows aliases. When using Auto, any version of the function automatically receives runtime updates, just as it would with a Lambda-managed runtime.

3.3 FunctionUpdate

A function in FunctionUpdate mode resolves the alias to a new version only when a deployment occurs. Between deployments, the function keeps running on the same version even if the publisher updates the alias. The documentation highlights the benefit of this approach, noting that it allows runtime updates to be tested alongside code changes. It also states that consumers are responsible for regularly updating their functions to incorporate security patches.

A function's published version retains the runtime version used at the time of its publication. To roll back the code, configuration, and runtime version together, shift traffic back to the previous published version.

Even if the publisher rolls back the alias to a previous version, functions in FunctionUpdate mode stay on the version they have. The Deploying runtime updates page recommends that publishers tell consumers when a rollback has occurred, so that consumers can decide whether to redeploy.

3.4 Manual

A function in Manual mode still names a runtime alias, but Lambda does not choose a version from that alias. The Using a customer-managed runtime page states:

Your function doesn't receive any runtime updates, including security patches.

The documentation recommends temporarily using Manual for two specific purposes: to revert a function to a previous version if a runtime update breaks it, and to hold a version for a short time. Once the publisher resolves the issue, the function should be reverted to Auto. Functions reverted to Auto will use the version pointed to by the alias from the next cold start.

To pin a function to a specific version, you need the lambda:AssociateRuntimeVersion permission for the ARN of the desired version. The version you pin must be compatible with the function's architecture.

Block dates do not apply to functions configured with Manual. However, switching a Manual function back to Auto fails if the alias is past its update block date. To revert to Auto or to FunctionUpdate, the alias must not be blocked.

3.5 Settings per Function Version

Update modes can be configured on a per-function version basis. The Using a customer-managed runtime page gives an example where, if a published version using the Auto update mode experiences issues due to a runtime update, only that version is switched to Manual and pinned to the previous runtime version.

3.6 The Configured Version and the Version of the Running Environment

The RuntimeVersionConfig in the response from GetFunctionConfiguration returns the ARN of the runtime version. On the Using a customer-managed runtime page, this value is described as follows for functions configured with Auto:

In Auto mode, this value is the runtime version that the alias currently points to. New execution environments use this version. Execution environments that are already running might still use the previous version.

In other words, RuntimeVersionConfig is the configured version, and it may not necessarily correspond to the version of the environment that processed a particular invocation. To determine which version was actually running for each invocation, refer to Section 6.2 and examine the INIT_START line.

3.7 Differences Between Pages

There are discrepancies between the Lambda API reference documentation and the descriptions of customer-managed runtimes. This article will use the developer guide as the primary source and present the reference documentation as supplementary information.

  • The description for PutRuntimeManagementConfig's UpdateRuntimeOn states that Auto means "Automatically update to the most recent and secure runtime version using a Two-phase runtime version rollout." This description applies to Lambda-managed runtimes, whereas, as described in Section 2.4, customer-managed runtimes do not use a two-phase rollout.
  • The pattern for RuntimeVersionArn in both PutRuntimeManagementConfig and RuntimeVersionConfig shows an empty account field followed by runtime:. However, the ARN for a customer-managed runtime version includes the account ID and follows the format runtime/<runtime name>/version/<version name>. The current pattern appears to reflect the ARN format for Lambda-managed runtime versions (Inference). In the demonstration, a customer-managed runtime version ARN was passed to the Manual setting (Chapter 9).
  • The Service Authorization Reference lists lambda:AssociateRuntimeAlias and lambda:AssociateRuntimeVersion as dependent actions for CreateFunction and UpdateFunctionConfiguration. The entry for PutRuntimeManagementConfig does not list any dependent actions. The developer guide, across three pages – Using a customer-managed runtime, Managing Lambda runtime updates, and Sharing and controlling access to customer-managed runtimes – states that lambda:AssociateRuntimeVersion is required for version pinning. Because the demonstration ran with administrator permissions within one account, this article has not verified whether this difference shows up in how Lambda actually checks permissions.

4. Who is Responsible for Patches?

This chapter outlines how responsibility for patches is divided between Lambda, publishers, and function owners for customer-managed runtimes.

4.1 Table of Responsibilities

The shared responsibility table on the Managing Lambda runtime updates page puts the following sentence in the Lambda responsibility column of the customer-managed runtime row:

Apply the runtime version that the runtime alias points to, according to the function's runtime update mode.

The customer responsibility column of the same row separates the publisher and the function owner:

Runtime publisher: Publish new runtime versions containing the latest patches, and update runtime aliases.
Function owner: Choose the appropriate runtime alias for the function. Otherwise, the same responsibilities as for a Lambda-managed runtime in the selected runtime update mode.

Combining this with the descriptions on the entry page, the Deploying runtime updates page, and the Runtime lifecycle page gives the following table:

Responsible PartyActionsActions Not Performed
LambdaApplies the version that the alias points to, according to the function's update mode. Updates the base image.Patching customer-managed runtimes. Testing them. Notifying about lifecycle changes.
PublisherApplies patches to all runtime components. Rebuilds from the base image. Tests and releases new versions. Moves aliases, monitors, and reverts. Maintains backward compatibility. Informs consumers of changes.—
Function OwnerSelects appropriate aliases and update modes for the function. If using FunctionUpdate, deploys regularly. If using Manual, uses it temporarily and reverts quickly.—

4.2 What Lambda Does Not Do

The Deploying runtime updates page begins the section on publisher responsibilities with the following sentence:

When you publish a runtime, you own its updates. Lambda doesn't patch or test customer-managed runtimes for you.

The same section lists publisher responsibilities as including backward compatibility, testing, security patches, and communication. The security patches apply to the operating system, language runtime, runtime interface client, and all libraries installed by the publisher. Regarding communication, the same page states that runtime metrics do not identify consumers, and CloudTrail events do not reveal contact information. It recommends keeping a record of consumer accounts, mailing lists, and chat channels.

The Runtime lifecycle page states the following regarding notifications:

Lambda doesn't send notifications about customer-managed runtimes. For example, Lambda doesn't create AWS Health events, send emails, or add AWS Trusted Advisor checks when you deprecate a runtime.

An article on the Compute Blog also states, "Lambda doesn’t patch customer-managed runtimes for you." The What's New article states that the platform team manages the runtime's contents, updates, access, and lifecycle. There is no discrepancy in the way these three documents describe the responsibility for patching.

Regarding patching frequency, the documentation states, "How often you patch your runtime is a business decision." It recommends that both publishers and consumers determine the frequency based on their respective security requirements.

4.3 The Publisher Incorporates Lambda's Base Image Updates

The statement "Lambda doesn't patch customer-managed runtimes" is about the contents of a customer-managed runtime. Lambda keeps updating the base image, which is the starting point for building a runtime. The Building a runtime image from a Lambda base image page states:

Lambda regularly updates the base images with security patches. However, Lambda doesn't update your runtime image or your runtime versions.

To deliver base image updates to functions, the publisher must rebuild the runtime image from the new base image, release it as a new version, and update the alias. Even if the Dockerfile's FROM instruction uses a moving tag, the version will not change until the image is rebuilt. This is because the runtime version cannot be modified.

The same page also states that when Lambda deprecates the corresponding Lambda-managed runtime, updates to the base image also stop. At that time, the options available are to align the deprecation date of the runtime or alias with the deprecation date of the Lambda-managed runtime, migrate to a different base image before deprecation, or manually apply patches to the base image.

4.4 Lambda Patches the OS of OS-Only Runtimes

The runtime list page states that OS-only runtimes, specifically those in the provided category, are handled as follows:

Lambda patches the operating system in OS-only runtimes, in the same way as for other managed runtimes.

Therefore, the statement "Lambda doesn't patch customer-managed runtimes" cannot be extended to encompass the operating systems used by OS-only runtimes or functions using the "bring your own language" approach. The differences are detailed in the table in Chapter 8.

4.5 Publishers Can Execute Code Within Functions

The Using a customer-managed runtime page states the following as an important note:

A runtime publisher can push any code into the execution environments of functions that use the runtime. This code runs with the permissions of your function's execution role. Use customer-managed runtimes only from publishers that you trust.

A Compute Blog article explains this as "This is by design. It’s how runtime updates work." It states that publishers need the same trust as the people who manage your applications or run code with your permissions. Publishers can release updates that break functions, or delete the runtime and make functions fail.

Organization administrators can prevent untrusted runtimes by denying access to lambda:AssociateRuntimeAlias and lambda:AssociateRuntimeVersion. The documentation lists two methods for doing so: Service Control Policies (SCPs) and identity-based policies or permission boundaries. SCPs do not apply to the principal of the organization's management account. While denying access prevents the creation of new functions, it does not affect functions already using the runtime (see Section 5.4).

4.6 When Using a Third-Party Runtime

For third-party runtimes and critical applications, the entry page and the Using a customer-managed runtime page suggest considering this: if the publisher makes its runtime image public, copy it into your own ECR repository and create your own customer-managed runtime. You then decide when updates reach your functions. The entry page also mentions FunctionUpdate and Manual update modes as methods for controlling when updates are received.

5. Distribution and When Permissions Are Checked

This chapter describes how the runtime is distributed to consumers and when Lambda checks their permissions.

5.1 ECR Images and Regions

The contents of a runtime version consist of Amazon ECR container images. The What's New article calls these OCI container images. The image repository must be located in the same Region as the runtime, although it can also be located in a different account. The repository policy must grant the Lambda service principal permission to read the images.

A runtime is a Region-specific resource. To use it in multiple Regions, you must replicate the image to each Region and create a runtime in that Region. Resource-based policies must also be applied on a Region-by-Region basis.

When creating a version, Lambda resolves the image tags to their digests. Even if you later move the tag to a different image, the version will not change.

5.2 Sharing Units

The publisher shares the runtime itself with resource-based policies. Policies are applied to the runtime, not to individual aliases or versions. Each statement's Resource specifies which aliases and versions can be used. The recipient of the shared runtime can be a specific AWS account, an AWS Organizations organization, an organizational unit, or all AWS accounts (public).

Each statement lets consumers use an alias by granting lambda:AssociateRuntimeAlias on it. If you also want to allow pinning to a specific version, grant the lambda:AssociateRuntimeVersion permission for that version. Having the lambda:AssociateRuntimeAlias permission implicitly grants permissions to the version the alias points to. However, if a policy explicitly denies the lambda:AssociateRuntimeVersion permission for that specific version, the request will fail.

Read-only actions are not required for function configuration. The read-only actions are lambda:GetRuntime, lambda:GetRuntimeAlias, lambda:ListRuntimeAliases, lambda:GetRuntimeVersion, and lambda:ListRuntimeVersions. The documentation recommends allowing these actions so that consumers can read alias descriptions and lifecycles. The response to GetRuntimeVersion includes the image URI, which contains the publisher's account ID and the repository name. The URI alone does not provide access to the image.

Consumers cannot list runtimes from other accounts in the Lambda console. Shared runtimes are visible through the AWS CLI or the Lambda API. In the console, consumers select the runtime by entering the alias ARN.

This site's Resource-Based Policies by Service on AWS and Cross-Account Sharing by Service on AWS compare resource-based policies by service and cross-account sharing.

5.3 The Same Account and Different Accounts

Function and Runtime LocationRequired Policies
Same AccountEither an identity-based policy or a runtime resource-based policy.
Different AccountBoth the consumer's identity-based policy and a runtime resource-based policy.

Even if other policies permit these actions, SCP and permissions boundaries can still deny them.

When using a runtime in a different account, copies of CloudTrail events related to requests that reference the runtime (such as creating functions, modifying aliases, or pinning versions) are also delivered to the publisher's account. These copies always include the consumer's account ID and, in allowed requests, the function's ARN. The requesting principal is not included.

5.4 When Lambda Checks Permissions

The Using a customer-managed runtime page states:

Lambda checks your permissions only when you create a function, change its runtime configuration, or pin it to a runtime version. Lambda doesn't check them when you update the function code or other settings, or when it invokes your function. If the publisher later removes your access, your existing function keeps running and keeps receiving alias updates.

The Sharing and controlling access to customer-managed runtimes page also states that Lambda does not check permissions when the publisher points an alias to a new version. Policy changes only apply to new functions and changes to the function's runtime configuration.

Therefore, revoking access does not stop existing functions. The same page explains that to prevent existing functions from using a runtime, you must delete the alias or version that the function uses, and warns that doing so will break functions across all accounts (see Section 7.3).

5.5 Limitations and Tools on the Publisher's Side

The entry page lists the following three limitations on the publisher's side:

  • The runtime's resources cannot be encrypted with AWS KMS customer-managed keys.
  • Code signing cannot be used with the runtime's image.
  • AWS SAM cannot be used to publish or update customer-managed runtimes.

These limitations do not apply to consumers' functions. Functions that use customer-managed runtimes can continue to use customer-managed keys and code signing as before.

Runtime, version, and alias operations are managed through the Lambda Core API, accessible via the AWS CLI using aws lambda-core. Functions, tags, and resource-based policies are handled through the traditional Lambda API using aws lambda. The tutorial assumes AWS CLI version 2.40.3 or later. CloudFormation added three resources – AWS::Lambda::Runtime, AWS::Lambda::RuntimeVersion, and AWS::Lambda::RuntimeAlias – on November 16, 2026 (see Document history in the Template Reference). The What's New article states that creation and management are possible with AWS CLI, AWS SDK, CloudFormation, and AWS CDK. Whether there are high-level constructs available in CDK for creating runtimes was not verified in this article (Not stated).

6. Checking Which Version is Being Used

This chapter explains how publishers and consumers can check which versions are being used and how much.

6.1 Publisher Account Metrics

Lambda provides runtime metrics for publisher accounts that have runtimes.

ItemDescription
MetricsRuntimeInvocations (the number of invocations, including both successful and failed) and RuntimeInvocationErrors (the number of invocations that resulted in a function error).
NamespaceAWS/Lambda
Granularity1 minute
DimensionsFour combinations: Runtime, Runtime and RuntimeAlias, Runtime and RuntimeVersion, and Runtime, RuntimeAlias, and RuntimeVersion.
ScopePer Region. The total across the functions of all accounts and organizations that use the runtime in that Region.
ExclusionsFunction names, account IDs, and other consumer information.

The monitoring page describes invocations of functions pinned to a version in Manual mode as follows:

Lambda doesn't count invocations of functions that are pinned to a runtime version in Manual mode in the RuntimeAlias dimension.

Invocations of pinned functions appear only in the Runtime dimension, or in the Runtime and RuntimeVersion dimensions. The total for the alias dimension is smaller than the total for the whole runtime by the invocations of pinned functions (Inference). In this article's demonstration, invocations of the FunctionUpdate function did not appear in the alias dimension either (Observed, see Section 9.6).

The Deploying runtime updates page describes how to track the rollout progress using these metrics. As Lambda replaces execution environments, RuntimeInvocations for the new version increases and RuntimeInvocations for the previous version decreases. Regarding errors, it is recommended to compare the error rates of the new and previous versions using a similar volume of traffic over the same period, and to avoid setting alarms based on absolute error counts. This is because the error counts include errors in the consumers' function code.

Consumers continue to view the standard metrics for their own functions as before. Customer-managed runtimes do not modify function metrics.

6.2 INIT_START Line

Lambda writes an INIT_START line to the function's log group each time it creates an execution environment. In customer-managed runtimes, this line includes the runtime's name, version name, and the version's ARN. An example from the Using a customer-managed runtime page appears in the following format:

INIT_START Runtime Version: companyphp8:v8.3.2 Runtime Version ARN: arn:aws:lambda:us-east-1:123456789012:runtime/companyphp8/version/v8.3.2

This line only appears when an environment is created, and does not appear with each invocation. You can determine which version is running for a given environment by examining the INIT_START line that was written when that environment was created. The documentation also points to this line as a way to find the previous version when pinning with Manual.

6.3 Alias Lifecycle and Compatibility

Consumers can use aws lambda-core get-runtime-alias to view the version an alias points to, its release lifecycle ReleaseLifecycle, and its Compatibility. When viewing runtimes in other accounts, the publisher must have granted read access. The Compatibility information indicates the integration model, the architecture the alias supports, and whether it is compatible with Lambda Managed Instances. An alias's compatibility is inherited from the version it points to.

Consumers can list functions with a Runtime of custom and their corresponding RuntimeConfig using the ListFunctions command within their own account. Publishers cannot list functions in consumers' accounts. A publisher learns how the runtime is used from the metrics described in Section 6.1.

7. When Updates Are Not Received

This chapter describes situations where, due to the publisher's actions, a function no longer receives updates or can no longer start new environments.

7.1 Release Lifecycle and Block Dates

Publishers can set a release lifecycle, ReleaseLifecycle, on a runtime or an alias. The lifecycle is optional and consists of the following four items:

ItemDescription
ReleaseStateMust be one of: PREVIEW, GA, or DEPRECATED.
DeprecationDateThe date of deprecation. From this date onward, Lambda will return DEPRECATED for the ReleaseState.
FunctionCreateBlockDateFrom this date, attempts to create functions using that runtime or alias using the CreateFunction operation will fail.
FunctionUpdateBlockDateFrom this date, attempts to update function code or configuration using that runtime or alias using the UpdateFunctionCode and UpdateFunctionConfiguration operations will fail.

There are three dates, with two of them representing block dates. These three dates are independent of each other and can be ordered in any sequence. The Runtime lifecycle page describes the DeprecationDate as follows:

The DeprecationDate changes the release state that Lambda reports. It doesn't block function operations by itself. To block them, set the block dates.

Block dates do not interrupt function invocations. Even after the deprecation date, and even after both block dates, functions will continue to operate. After the update block date is reached, it is still possible to move a function to a different alias or runtime. Consumers cannot override block dates.

When an alias has its own lifecycle, that alias will use the alias lifecycle instead of the runtime lifecycle. If the publisher omits --release-lifecycle when using update-runtime-alias, the alias lifecycle will be removed, and the runtime lifecycle will be used instead. To keep the alias lifecycle, the publisher must pass the entire lifecycle with each update. Similarly, omitting the lifecycle when updating a runtime removes the runtime lifecycle.

7.2 Lambda Does Not Notify Consumers About Lifecycle Changes

The Using a customer-managed runtime page states:

Lambda doesn't notify you about lifecycle changes for customer-managed runtimes.

Consumers need to check the lifecycle of the aliases their functions use (see Section 6.3). Publishers are encouraged to notify consumers of lifecycle changes through the communication channels that consumers already use, and to provide a transition period before the block date.

7.3 Aliases, Versions, and Images: Deletion

The Using a customer-managed runtime page states that the following changes by the publisher put a function in the Inactive state:

  • The alias or version of the runtime used by the function is deleted.
  • The container image for the version used by the function is deleted, or Lambda's access to the image is removed. This can take up to 24 hours to take effect.
  • A change breaks compatibility, such as removing an architecture that the function uses.

When a function enters the Inactive state for these reasons, its StateReasonCode is InvalidRuntime. While running environments continue to handle invocations, Lambda cannot create new environments, so invocations that require a cold start fail. When the publisher reverts the changes, the function automatically returns to the Active state. No function updates or redeployments are required. How the failures looked in the demonstration, and how they appeared in the metrics, is covered in Section 9.7.

The impact of deleting aliases or versions depends on the update mode. The table on the Deleting and restoring runtimes page is as follows:

Update ModeWhen the function's alias is scheduled for deletionWhen the version used by the function is scheduled for deletion
AutoInvocations that require a cold start fail. Running environments continue to handle invocations.Not applicable. The version pointed to by the alias cannot be deleted.
FunctionUpdateNo impact on invocations. The alias is not resolved during invocation.Invocations that require a cold start fail. Running environments continue to handle invocations.
ManualNo impact on invocations. The alias is not resolved during invocation.Invocations that require a cold start fail. Running environments continue to handle invocations.

Regardless of the update mode, if a function's alias is scheduled for deletion or has been deleted, attempts to create or update the function will fail. Updates to settings unrelated to the runtime configuration will also fail.

Lambda does not verify whether a function is currently using a specific runtime, version, or alias before initiating the deletion process. The documentation recommends checking the usage metrics and notifying consumers before deleting resources.

7.4 Waiting Period and Restoration

Lambda does not delete runtime resources immediately when it receives a deletion request. Instead, it sets the resources to a PENDING_DELETION state and permanently deletes them after a waiting period of between 7 and 30 days. The default is 30 days, and immediate deletion is not possible. While resources are in the pending deletion state, they behave as if they have already been completely removed from the perspective of a function.

In the demonstration, an alias deleted with a 7-day waiting period was scheduled for deletion 30 days later (Observed, Section 9.8). Check the waiting period with PendingDeletionAt.

During the waiting period, you can restore the resources using RestoreRuntime. When restored, the function automatically recovers. The names of the resources remain reserved until they are completely deleted, and they are also counted against your quota. Because restoring a version requires an image with the same digest, the documentation recommends retaining images until the version is completely deleted.

Other services also schedule deletions with a waiting period, such as KMS keys and Secrets Manager secrets. This site's Deletions You Schedule on AWS covers that pattern.

7.5 Differences Between Lambda-Managed Runtimes and Customer-Managed Runtimes Regarding End-of-Life

The Runtime lifecycle page provides a table outlining the differences between Lambda-managed runtimes and customer-managed runtimes regarding their end-of-life processes.

ItemLambda-Managed RuntimesCustomer-Managed Runtimes
Schedule Determined ByAWS, following the deprecation policy.The publisher.
Block DatesCreates are blocked at least 30 days after deprecation, and updates at least 60 days after deprecation.Optional. The publisher chooses the dates and order.
ScopePer runtime identifier.Per runtime, alias, or both.
StatusSupported or deprecated.PREVIEW, GA, DEPRECATED.
NotificationsHealth Dashboard, email, AWS Trusted Advisor.Not provided by Lambda. The publisher is responsible for notifications.
Invokes After Block DateContinue to function.Continue to function.

The list of deprecation dates for Lambda-managed runtimes is available in Chapter 3 of this site's AWS End-of-Support and EOL Reference. The publisher determines the deprecation of customer-managed runtimes, and Lambda does not provide notifications.

8. Differences Between Lambda-Managed Runtime, OS-Only Runtime, and BYOL

This chapter compares the customer-managed runtime with other deployment options.

Previously, the custom runtime involved including the runtime within a function's deployment package or layer and running it on an OS-only runtime. This approach is referred to as "bring your own language," abbreviated as BYOL. Lambda still supports BYOL. The entry page highlights the significant advantages of the customer-managed runtime and recommends it over BYOL for many applications. The runtime list page notes that BYOL remains a viable option when dealing with a small number of functions, as it requires updating the runtime separately for each function.

The rows related to patching and updates in the comparison table on the entry page are as follows:

ItemLambda-Managed RuntimeCustomer-Managed RuntimeContainer ImageBYOL
Runtime ControlAWSPublisherFunction DeveloperFunction Developer
Update MethodLambda automatically applies updatesPublisher creates a new version and updates the alias. Functions receive the update on the next cold start.Rebuild the image and redeploy the function.Update the runtime layer and redeploy each function.
OS Patch ResponsibilityAWSPublisherFunction Developer (rebuild from an updated base image)AWS manages the OS-only runtime. Language runtime or layers are the responsibility of the function developer.
Update ScopeControlled by Lambda and rolled out graduallyPer aliasPer functionPer function
End-of-Life ManagementAWSPublisherFunction DeveloperAWS manages the OS-only runtime. Language runtime or layers are the responsibility of the function developer.

The runtime list page mentions that third-party runtimes like Bref for PHP use this approach. This site's PHP Release and Support Timeline provides further context.

For consumers who need consistent runtime versions under Lambda-managed runtime updates, the documentation lists two options: customer-managed runtimes and container images. The Understanding how Lambda manages runtime updates page explains that new versions of Lambda-managed runtimes roll out gradually by Region, and that functions deployed at the same time can get different versions. If version consistency is a requirement, these two options should be considered.

Regarding who determines the patch deadline, this site's Web Framework Support Windows Compared addresses the comparison of support periods set by the maintainers of web frameworks. On the point that someone else moves what a name points to, this site's Which Model a Claude Code Session Runs, which covers Claude Code's model aliases, is the counterpart.

9. Demo: Applying a Single Alias Update Across Three Update Modes

This chapter details the configuration, procedure, and observations from the demo. All observations are marked as Observed. Times are recorded in UTC.

9.1 Architecture

The demonstration ran from 07:13 to 09:03 UTC on November 30, 2026, in one account in us-east-1. The publisher and the consumer were the same account. This configuration mirrors the official tutorial and allows the runtime to be used with identity-based policies alone.

ResourceDescription
Runtime Imagepublic.ecr.aws/lambda/python:3.14-arm64 plus one marker file, /var/runtime/runtime-info.txt, that shows the version. Two images, v1 and v2.
RuntimeOne.
Runtime Versionv1, v2.
Runtime Aliasprod (moved from v1 to v2), and canary for the optional step.
FunctionThree functions that use prod, with the update modes Auto, FunctionUpdate, and Manual (pinned to v1). A fourth function that uses canary in the optional step.

The function code returns the contents of the marker file, a randomly generated ID created once per execution environment, and the time of environment initialization. The marker indicates the runtime version that processed the invocation, while the ID signifies whether the environment is being reused or is a new environment.

9.2 Procedure

  1. As the publisher, create two images, a runtime, versions v1 and v2, and the alias prod pointing to v1. Create v2, but do not point any alias at it.
  2. As the consumer, create three functions that use prod and configure their update mode.
  3. Call each function sequentially three times to warm one v1 environment for each.
  4. Move prod to version v2.
  5. Call each function sequentially three times (the running environments serve these calls).
  6. Send five simultaneous calls to each function. Each call will wait three seconds, allowing Lambda to provision new environments.
  7. Modify one environment variable for each of the three functions (function update). Then, call each function sequentially twice, followed by three simultaneous calls.
  8. Switch the Manual function back to Auto, then call it sequentially three times, followed by five simultaneous calls.
  9. Optional step: Point canary to v1, warm the fourth function, and then schedule canary for deletion. Monitor the function's state while making calls. After observing the state as Inactive, send simultaneous calls and then revert using RestoreRuntime.
  10. Additional step: Schedule canary for deletion again. Check the state every 5 seconds without calling the function. After observing Inactive, send five simultaneous calls at about 5, 60, 180, and 300 seconds, and then restore canary. This step was added because the results of step 9 did not match the documentation. AWS CLI retries were turned off so that each record is a single request.
  11. Wait five minutes, then collect the INIT_START logs and metrics from the publisher's account.
  12. Delete the functions, the ECR repository, the IAM role, and the log groups. Schedule the aliases, versions, and runtime for deletion with a seven-day waiting period.

9.3 Immediately After Alias Update

The prod update was sent at 07:18:28, and a response was received 2 seconds later. The versions of the subsequent calls are as follows. The numbers in parentheses indicate the number of environments that received the call.

StepAutoFunctionUpdateManual (pinned to v1)
Before update, sequentially 3 timesv1 (1 environment)v1 (1 environment)v1 (1 environment)
After update, sequentially 3 timesv1 (same as before update, 1 environment)v1 (same as before update, 1 environment)v1 (same as before update, 1 environment)
After update, 5 simultaneous callsThe 1 call served by the running environment was v1. The 4 calls served by 4 new environments were v2.The 1 call served by the running environment and the 4 calls served by 4 new environments were all v1.The 1 call served by the running environment and the 4 calls served by 4 new environments were all v1.

For the Auto function, of the 5 calls sent in the same second, only the 1 call served by the running environment was v1, while the 4 calls served by new environments were v2. Invocations of one function ran on two versions at the same time. The new environments for Auto were initialized approximately 11 seconds after the update response. This is a single recorded instance.

What the Demo Observed After the Runtime Alias Update
What the Demo Observed After the Runtime Alias Update

9.4 The Function Update and the Switch to Auto

At 07:42:48, one environment variable was changed on each of the three functions. New environments served all later calls. Auto and FunctionUpdate were at v2, while Manual was at v1. The FunctionUpdate function moved to v2 only with the function update.

To pin the Manual function, the demo passed the ARN of a customer-managed runtime version. The ARN had the form arn:aws:lambda:us-east-1:<account ID>:runtime/<runtime name>/version/v1. PutRuntimeManagementConfig accepted this ARN, even though it does not match the pattern described in Section 3.7.

At 08:09:36, the Manual function was switched back to Auto. A v1 environment served the call immediately before the switch. The first call after the switch was not served by the v1 environment created 8 seconds earlier, but by a new environment, and it ran on v2. The next seven calls also all ran on v2. After the PutRuntimeManagementConfig call, the function's LastModified timestamp changed to the time of the switch. The documentation states that functions switched to Auto will use the alias version from the next cold start. The documentation does not say whether changing the update mode replaces running environments (Not stated).

9.5 The Configured Version and the INIT_START Lines

At the end of the alias update step, the demo read the configuration of the three functions. The Auto function's RuntimeVersionConfig returned v2, while a dozen or so seconds earlier, a running environment of the same function had responded with v1. As documented in Section 3.6, the configured version did not necessarily match the version of the running environment. The FunctionUpdate and Manual functions both returned v1.

The INIT_START lines in the functions' log groups had the following form. A tab separated the version name from the ARN.

INIT_START Runtime Version: cmrdemo-202611300712:v1	Runtime Version ARN: arn:aws:lambda:us-east-1:123456789012:runtime/cmrdemo-202611300712/version/v1

The three functions had 32 INIT_START lines in total. Thirty of these lines matched, in time, the environments that the demo's calls initialized, and their versions matched each environment's marker. The remaining two lines were written at times when the demo was not sending any calls. The line for the Auto function at 07:20:10 reported v2, and the line for the FunctionUpdate function at 07:25:26 reported v1. Neither environment received a call from the demo. The records do not show what created these two environments.

9.6 Metrics in the Publisher's Account

The 1-minute sums of RuntimeInvocations in the publisher's account were as follows:

TimeRuntime Onlyv1v2prod in RuntimeAliasBreakdown of Three Functions
07:183329411Auto: 11 (v1: 7, v2: 4), FunctionUpdate: 11 (v1), Manual: 11 (v1)
07:42 and 07:43155105Auto: 5 (v2), FunctionUpdate: 5 (v2), Manual: 5 (v1)
08:099188Functions switched back to Auto: 9 (v1 before switch: 1, v2 after switch: 8)

At every time, the count in the prod dimension matched the number of invocations of functions running in Auto. As the documentation states (Section 6.1), invocations of the Manual function did not enter the prod dimension. Invocations of the FunctionUpdate function did not enter the prod dimension either. The functions that the documentation excludes from the RuntimeAlias dimension are those pinned in Manual mode. No values were recorded in RuntimeInvocationErrors throughout the demonstration.

9.7 Inactive and After the Restore

In the optional step, 2 seconds after canary was scheduled for deletion, the state of the fourth function became Inactive, and the StateReasonCode became InvalidRuntime. The StateReason indicated, "The runtime or runtime version specified is not supported." While in the Inactive state, the function's RuntimeVersionConfig returned a ServiceException error instead of the ARN of the version.

Immediately after observing the Inactive state, the running environment continued to process invocations. Of the three invocations sent at once 3 seconds after Inactive was seen, one was served by the running environment, one was served by a new environment on v1 and succeeded, and one failed.

Because one of these results does not match the documentation, which says new environments cannot be created, the additional step checked it again. Five invocations were sent at once at about 5, 60, 180, and 300 seconds after Inactive was seen, and all 20 failed. No INIT_START line appeared during this period. In both steps, the first check 15 seconds after canary was restored showed the function back in the Active state. After the restore in the additional step, three invocations sent at once were served by three new environments on v1 and succeeded. No function updates or redeployments were performed.

The 21 AWS CLI errors that occurred all had the following format:

An error occurred (ServiceException) when calling the Invoke operation (reached max retries: 0): We currently do not have sufficient capacity in the region you requested.

The error wording points to insufficient capacity and does not mention that the runtime is unavailable. The additional step turned off retries, so the message says reached max retries: 0; the optional step shows reached max retries: 2 after the AWS CLI's default retries.

The Deleting and restoring runtimes page states the following regarding resources scheduled for deletion:

Invokes that require a cold start fail, but the RuntimeInvocations and RuntimeInvocationErrors metrics still track them.

In this demonstration, the 21 failed invocations did not appear in either RuntimeInvocations or RuntimeInvocationErrors. Only successful invocations appeared in the canary dimension.

9.8 Deletion Scheduling and Waiting Periods

In the deletion step, a 7-day waiting period was specified for every alias, version, and the runtime. After the deletion, the PendingDeletionAt value read was as follows:

ResourcePendingDeletionAt
Alias prod7 days later
Alias canary30 days later
Version v1, the version pointed to by canary30 days later
Version v27 days later
Runtime7 days later

When canary was deleted in the additional step, 7 days was also specified, and its PendingDeletionAt was also 30 days later. canary had been restored from scheduled deletion twice, while prod, which was never restored, got the specified 7 days. The records do not show the cause.

The 30-day waiting period for v1 is consistent with the documented policy. The Deleting and restoring runtimes page states that a version's waiting period will not expire before the alias that points to that version, and specifies the following for runtimes.

A runtime's waiting period can't end before the waiting period of any of its runtime versions or runtime aliases.

In this demonstration, the runtime's PendingDeletionAt was 7 days later, which was earlier than the 30-day waiting periods for v1 and canary.

9.9 Interpreting Observations

The correspondence between observed behavior and the documentation is as follows:

ObservationDocumentation Alignment
After the alias update, the running environment is v1, and new Auto environments are v2 (Section 9.3).Aligns with the documentation.
FunctionUpdate and Manual stay at v1 even in new environments. After the function update, only FunctionUpdate moves to v2 (Sections 9.3 and 9.4).Aligns with the documentation.
RuntimeVersionConfig returned v2 while a running environment was still v1 (Section 9.5).Aligns with the documentation.
Switching from Manual to Auto moved the next call to a new environment (Section 9.4).Not stated in the documentation.
Invocations of the FunctionUpdate function did not enter the RuntimeAlias dimension (Section 9.6).The documentation only mentions Manual.
A new environment was created 3 seconds after Inactive was seen (Section 9.7).Does not align with the documentation. The 20 invocations from 5 to 300 seconds later failed, as the documentation states.
Failed invocations that needed a cold start did not appear in the runtime metrics (Section 9.7).Does not align with the documentation.
canary, deleted with 7 days specified, was scheduled 30 days later, and the runtime 7 days later (Section 9.8).Does not align with the documentation.

Based on these observations, the following cannot be determined:

  • How long it takes until running environments are replaced. The demonstration updated the functions 24 minutes later, which replaced all environments, so it did not measure how long old environments remain after an alias update. The 11 seconds in Section 9.3 is when parallel calls started new environments, not when Lambda replaced an environment.
  • The reason the one call 3 seconds after Inactive was seen succeeded. The state change may not yet have reached the invocation path, but this has not been verified (Inference).
  • Whether the three observations that do not align with the documentation occur generally, or are specific to this demonstration.

Observations that do not align with the documentation should be treated as weaker evidence than the documentation itself when making operational decisions. For example, to watch for failures of an Inactive function, do not rely only on the publisher's runtime metrics; also check the consumer's standard function metrics and errors. Consumers who receive the error should not rule out the deletion of a runtime resource as a cause, even though the ServiceException wording points to insufficient capacity. Check the waiting period by reading PendingDeletionAt instead of assuming the number of days specified.

10. Frequently Asked Questions about Customer-Managed Runtimes

Q1. Why am I still receiving responses from the old version even after updating the alias?

This is because running execution environments stay on the old version until Lambda replaces them. Functions in Auto mode use the new version only from the next cold start. The documentation does not specify how long the replacement takes. If the function is in FunctionUpdate mode, the alias update does not reach it until the function is updated; in Manual mode, not until the pin is removed. (See Section 2.3 and Chapter 3.)

Q2. Should you keep it set to Manual?

It is not recommended. Functions in Manual mode will not receive runtime updates, including security patches. The documentation suggests using Manual temporarily and switching back to Auto once the publisher resolves the issue (see Section 3.4).

Q3. If the publisher stops sharing, will consumers' functions stop working?

No, they will not. Lambda only checks permissions when a function is created, when its runtime configuration changes, and when it is pinned to a version. Existing functions will continue to operate and will continue to receive alias updates. Existing functions can become Inactive when the publisher deletes the alias, version, or ECR image that the function uses (see Sections 5.4 and 7.3).

Q4. If you build a runtime using Lambda's base image, will Lambda apply patches to it?

No. Lambda updates the base image, but it does not update the runtime image or version created by the publisher. The publisher must rebuild the image, release a new version, and update the alias to ensure the function receives the updated version (see Section 4.3).

Q5. Will the function stop after the deprecation date set by the publisher?

No. The function does not stop after the deprecation date set by the publisher. DeprecationDate simply changes the displayed status; it does not prevent operations. Even after the two block dates have passed, calls to the function will continue. After the block dates, only function creates and updates fail (see Section 7.1).

Q6. Will Lambda notify me about lifecycle changes?

No, it will not. Lambda does not generate AWS Health events, emails, or Trusted Advisor checks related to the customer-managed runtime. The publisher informs consumers, and consumers check the lifecycle of the aliases they use (see Section 7.2).

Q7. Can the publisher determine which functions are using their runtime?

The names of functions and account IDs are not reflected in the metrics. The publisher can only see the number of invocations and errors for each version and alias. Copies of CloudTrail events for requests from consumers in other accounts that reference the runtime include the consumer's account ID and, in allowed requests, the function's ARN (see Sections 5.3 and 6.1).

Q8. Has the custom runtime been removed?

No, it has not. It is now called bring your own language (BYOL), and Lambda continues to support this approach. The documentation recommends customer-managed runtimes instead of BYOL for many applications (Chapter 8).

11. Summary

  • Delivery Method: When the publisher updates the runtime alias, functions in Auto mode use the new version at the next cold start. Running environments keep the old version until Lambda replaces them, and the documentation does not specify how long the replacement takes. There is no two-phase rollout; the publisher creates the stages by alias and by Region.
  • Update Mode: Functions in FunctionUpdate mode take the new version only at deployment, while functions in Manual mode stay on the pinned version and do not receive security patches.
  • Responsibility: Lambda does not apply patches to customer-managed runtimes, nor does it perform testing or provide notifications. It is the publisher's responsibility to rebuild, publish, update the alias, and notify consumers. The function owner selects the alias and update mode and assumes responsibility for the implications of those choices.

12. References



References:
Tech Blog with curated related content

Written by Hidekazu Konishi