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.fail('This call should not be successful as the batch size > MAX_BATCH_SIZE')
        except ClientError as e:
            self.assertEqual(e.response['Error']['Code'], INVALID_PARAMETER_VALUE_EXCEPTION)
        queue_url_2 = sqs_client.create_queue(QueueName=queue_name_2)['QueueUrl']
        queue_arn_2 = aws_stack.sqs_queue_arn(queue_name_2)
        try:
            
            lambda_client.create_event_source_mapping(
                EventSourceArn=queue_arn_2,
                FunctionName=function_name,
                BatchSize=BATCH_SIZE_RANGES['sqs'][1] + 1
            )
            self.fail('This call should not be successful as the batch size > MAX_BATCH_SIZE')
        except ClientError as e:
            self.assertEqual(e.response['Error']['Code'], INVALID_PARAMETER_VALUE_EXCEPTION)
        table_arn = aws_stack.create_dynamodb_table(ddb_table, partition_key='id')['TableDescription']['TableArn']
        rs = lambda_client.create_event_source_mapping(
            EventSourceArn=table_arn,
            FunctionName=function_name
        )
        self.assertEqual(rs['BatchSize'], BATCH_SIZE_RANGES['dynamodb'][0])
        
        dynamodb_client = aws_stack.connect_to_service('dynamodb')
        dynamodb_client.delete_table(TableName=ddb_table)
        sqs_client.delete_queue(QueueUrl=queue_url_1)
        sqs_client.delete_queue(QueueUrl=queue_url_2)
        lambda_client.delete_function(FunctionName=function_name)
    def test_disabled_event_source_mapping_with_dynamodb(self):
        function_name = 'lambda_func-{}'.format(short_uid())
        ddb_table = 'ddb_table-{}'.format(short_uid())