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?
)
        data_after = json.loads(result['Payload'].read())
        self.assertEqual(json.loads(to_str(data_before)), data_after['event'])
        context = data_after['context']
        self.assertEqual(response['Version'], context['function_version'])
        self.assertTrue(context.get('aws_request_id'))
        self.assertEqual(lambda_name, context['function_name'])
        self.assertEqual('/aws/lambda/%s' % lambda_name, context['log_group_name'])
        self.assertTrue(context.get('log_stream_name'))
        self.assertTrue(context.get('memory_limit_in_mb'))
        
        expected = ['Lambda log message - print function']
        if use_docker():
            
            
            expected.append('.*Lambda log message - logging module')
        self.check_lambda_logs(lambda_name, expected_lines=expected)
        
        testutil.delete_lambda_function(lambda_name)
    def test_http_invocation_with_apigw_proxy(self):
        lambda_name = 'test_lambda_%s' % short_uid()
        lambda_resource = '/api/v1/{proxy+}'
        lambda_path = '/api/v1/hello/world'
        lambda_request_context_path = '/' + TEST_STAGE_NAME + lambda_path
        lambda_request_context_resource_path = lambda_resource
        
        testutil.create_lambda_function(
            handler_file=TEST_LAMBDA_PYTHON, libs=TEST_LAMBDA_LIBS, func_name=lambda_name)
        
        lambda_uri = aws_stack.lambda_function_arn(lambda_name)