Does the Ruby Lambda Runtime support Ruby 3.0?

3

Does the current Ruby Lambda runtime support applications written with Ruby 3.x features and Gems? Its not 100% clear from the documentation. And this issue Ruby 3.0 Support? #14 in aws/aws-lambda-ruby-runtime-interface-client implies that it does, though the README says it only supports up to 2.7.x.

But then the Runtime docs Building Lambda functions with Ruby says it supports "SDK 3.1.0". Not clear if that is Ruby or the AWS SDK.

If we set the Lambda Environment variable

GEM_PATH	/var/task/vendor/bundle/ruby/3.0.0

It seems to "work" with the 3.0 Gems we install...

  • I have not seen any updates re. 3.* support from AWS. How are you getting around this issue for now?

  • We just switched everything back to 2.7. It was a bummer

질문됨 2년 전980회 조회
1개 답변
3

Your authentic source of information is https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html

This document mentions the version of Ruby that is supported is 2.7

Version 3.1.0 is the version of the Ruby SDK - https://docs.aws.amazon.com/sdk-for-ruby/v3/api/

profile pictureAWS
전문가
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠