Posted On: Feb 19, 2020

You can now develop Amazon Lambda functions using Ruby 2.7. This is the latest release of Ruby and supports new features like pattern matching, argument forwarding and numbered arguments. Lambda functions written in Ruby 2.7 run on Amazon Linux 2, the latest generation of Amazon Linux. To learn more about the Ruby programming model and how to create Amazon Lambda functions in Ruby 2.7, please click here

To get started, provide your code through the Amazon Lambda console or CLI and select the Ruby 2.7 runtime. Amazon Serverless Application Model (SAM) and Amazon CloudFormation can also be used for deploying and managing your serverless applications authored in Ruby 2.7. To migrate existing Amazon Lambda functions running in Ruby 2.5 to Ruby 2.7, update your code to be compatible with Ruby 2.7 and Amazon Linux 2, and edit the function to change the configured runtime to Ruby 2.7. 

The Ruby 2.7 runtime is available in the Amazon Web Services China (Beijing) Region, operated by Sinnet, and Amazon Web Services China (Ningxia) Region, operated by NWCD. Please visit our product page for more information about Amazon Lambda or log in to the Amazon Lambda console to get started.