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?
java_jar_with_lib = load_file(TEST_LAMBDA_JAVA_WITH_LIB, mode='rb')
        
        jar_dir = new_tmp_dir()
        zip_dir = new_tmp_dir()
        unzip(TEST_LAMBDA_JAVA_WITH_LIB, jar_dir)
        zip_lib_dir = os.path.join(zip_dir, 'lib')
        shutil.move(os.path.join(jar_dir, 'lib'), zip_lib_dir)
        jar_without_libs_file = testutil.create_zip_file(jar_dir)
        shutil.copy(jar_without_libs_file, os.path.join(zip_lib_dir, 'lambda.jar'))
        java_zip_with_lib = testutil.create_zip_file(zip_dir, get_content=True)
        java_zip_with_lib_gradle = load_file(os.path.join(
            THIS_FOLDER, 'lambdas', 'java', 'build', 'distributions', 'lambda-function-built-by-gradle.zip'
        ), mode='rb')
        for archive in [java_jar_with_lib, java_zip_with_lib, java_zip_with_lib_gradle]:
            lambda_name = 'test-%s' % short_uid()
            testutil.create_lambda_function(func_name=lambda_name,
                                            zip_file=archive, runtime=LAMBDA_RUNTIME_JAVA11,
                                            handler='cloud.localstack.sample.LambdaHandlerWithLib')
            result = self.lambda_client.invoke(FunctionName=lambda_name, Payload=b'{"echo":"echo"}')
            result_data = result['Payload'].read()
            self.assertEqual(result['StatusCode'], 200)
            self.assertIn('echo', to_str(result_data))
            
            testutil.delete_lambda_function(lambda_name)
    def test_sns_event(self):
        result = self.lambda_client.invoke(
            FunctionName=TEST_LAMBDA_NAME_JAVA, InvocationType='Event',
            Payload=b'{"Records": [{"Sns": {"Message": "{}"}}]}')
        self.assertEqual(result['StatusCode'], 202)
    def test_ddb_event(self):