AWS supports the following Ruby runtimes:

<!--StartFragment-->
Name | Identifier | SDK for Ruby | Operating system
-- | -- | -- | --
Ruby 2.7 | ruby2.7 | 3.0.1 | Amazon Linux 2
Ruby 2.5 | ruby2.5 | 3.0.1 | Amazon Linux

<!--EndFragment-->

Currently, `localstack/lambda` only contains the `ruby2.5` tag. Will the 2.7 runtime be supported in the (near) future?
})
        )
        self.assertEqual(rs['ResponseMetadata']['HTTPStatusCode'], 200)
        events = get_lambda_log_events(TEST_LAMBDA_NAME_JS)
        self.assertGreater(len(events), 0)
        
        testutil.delete_lambda_function(TEST_LAMBDA_NAME_JS)
class TestCustomRuntimes(LambdaTestBase):
    @classmethod
    def setUpClass(cls):
        cls.lambda_client = aws_stack.connect_to_service('lambda')
    def test_nodejs_lambda_running_in_docker(self):
        if not use_docker():
            return
        testutil.create_lambda_function(
            func_name=TEST_LAMBDA_NAME_CUSTOM_RUNTIME,
            handler_file=TEST_LAMBDA_CUSTOM_RUNTIME,
            handler='function.handler',
            runtime=LAMBDA_RUNTIME_PROVIDED
        )
        result = self.lambda_client.invoke(
            FunctionName=TEST_LAMBDA_NAME_CUSTOM_RUNTIME,
            Payload=b'{"text":"bar with \'quotes\\""}')
        result_data = result['Payload'].read()
        self.assertEqual(result['StatusCode'], 200)
        self.assertEqual(
            to_str(result_data).strip(),
            """Echoing request: '{"text": "bar with \'quotes\\""}'""")
        
        expected = ['.*Custom Runtime Lambda handler executing.']