Maintained with ☕️ by
IcePanel logo

AWS Lambda now supports Ruby 2.7



You can now develop AWS 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](/amazon-linux-2/), the latest generation of Amazon Linux. To learn more about the Ruby programming model and how to create AWS Lambda functions in Ruby 2.7, please click [here]( To get started, provide your code through the AWS Lambda console or CLI and select the Ruby 2.7 runtime. [AWS Serverless Application Model (SAM)](/serverless/sam/) and [AWS CloudFormation](/cloudformation/) can also be used for deploying and managing your serverless applications authored in Ruby 2.7\. To migrate existing AWS 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 [all Regions where Lambda is available](/about-aws/global-infrastructure/regional-product-services/). Please visit our [product page](/lambda/) for more information about AWS Lambda or log in to the [AWS Lambda console]( to get started.