Posted On: Jun 24, 2023
Amazon Lambda now supports Ruby 3.2 as both a managed runtime and a container base image in the Amazon Web Services China (Beijing) Region, Operated by Sinnet, and the Amazon Web Services China (Ningxia) Region, Operated by NWCD. Developers creating serverless applications in Lambda with Ruby 3.2 can take advantage of new features such as endless methods, a new Data class, improved pattern matching, and performance improvements. For more information on Lambda’s support for Ruby 3.2, see our product documentation.
To deploy Lambda functions using Ruby 3.2, upload the code through the Lambda console and select the Ruby 3.2 runtime. You can also use the Amazon CLI, Amazon Serverless Application Model (SAM) and Amazon CloudFormation to deploy and manage serverless applications written in Ruby 3.2. Additionally, you can also use the Amazon Web Services-provided Ruby 3.2 base image to build and deploy Ruby 3.2 functions using a container image. To migrate existing Lambda functions running earlier Ruby versions, review your code for compatibility with Ruby 3.2 and then update the function runtime to Ruby 3.2.
Ruby 3.2 is the latest long-term support (LTS) release of Ruby. Amazon Lambda will automatically apply updates to the Ruby 3.2 managed runtime and to the Amazon Web Services-provided Ruby 3.2 base image, as they become available.
The Ruby 3.2 runtime in Amazon Lambda is now available in the Amazon Web Services China (Beijing) Region, operated by Sinnet, and Amazon Web Services China (Ningxia) Region, operated by NWCD. Visit our product page for more information about Amazon Lambda or sign in to the Amazon Lambda console to get started.