Skip to main content

Amazon Lambda adds support for Ruby 4.0 in Amazon Web Services China Regions

Posted on: Apr 30, 2026

Amazon Lambda now supports creating serverless applications using Ruby 4.0 in the Amazon Web Services China (Beijing) Region, Operated by Sinnet, and the Amazon Web Services China (Ningxia) Region, Operated by NWCD. Developers can use Ruby 4.0 as both a managed runtime and a container base image, and we will automatically apply updates to the managed runtime and base image as they become available.

Ruby 4.0 is the latest long-term support (LTS) release of Ruby and is expected to be supported for security and bug fixes until March 2029. In addition to providing access to the latest Ruby language features, the Lambda Runtime for Ruby 4.0 also adds support for Lambda advanced logging controls, providing customers with JSON structured logs, configurable logging levels, and the ability to configure the target Amazon CloudWatch log group.

You can use the full range of Amazon deployment tools, including the Lambda console, Amazon CLI, Amazon Serverless Application Model (SAM), CDK, and Amazon CloudFormation to deploy and manage serverless applications written in Ruby 4.0. For more information on using Ruby 4.0 in Lambda, see our documentation.

Visit our product page for more information about Amazon Lambda or sign in to the Amazon Lambda console to get started.