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?
def test_destination(success=False):
            sqs_client = aws_stack.connect_to_service('sqs')
            lambda_client = aws_stack.connect_to_service('lambda')
            
            queue_name = 'test-%s' % short_uid()
            lambda_name = 'test-%s' % short_uid()
            queue_url = sqs_client.create_queue(QueueName=queue_name)['QueueUrl']
            queue_arn = aws_stack.sqs_queue_arn(queue_name)
            testutil.create_lambda_function(
                handler_file=TEST_LAMBDA_PYTHON, func_name=lambda_name, libs=TEST_LAMBDA_LIBS)
            lambda_client.put_function_event_invoke_config(
                FunctionName=lambda_name,
                DestinationConfig={
                    'OnSuccess': {
                        'Destination': queue_arn
                    },
                    'OnFailure': {
                        'Destination': queue_arn
                    }
                }
            )
            
            payload = {
                lambda_integration.MSG_BODY_RAISE_ERROR_FLAG: 1
            }
            
            condition = 'RetriesExhausted'
            if success:
                condition = 'Success'
                payload = {}