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?
json.loads(to_str(result_data)),
            {'validated': True, 'bucket': 'test_bucket', 'key': 'test_key'}
        )
    def test_trigger_java_lambda_through_sns(self):
        topic_name = 'topic-%s' % short_uid()
        bucket_name = 'bucket-%s' % short_uid()
        key = 'key-%s' % short_uid()
        function_name = TEST_LAMBDA_NAME_JAVA
        sns_client = aws_stack.connect_to_service('sns')
        topic_arn = sns_client.create_topic(Name=topic_name)['TopicArn']
        s3_client = aws_stack.connect_to_service('s3')
        s3_client.create_bucket(Bucket=bucket_name)
        s3_client.put_bucket_notification_configuration(
            Bucket=bucket_name,
            NotificationConfiguration={
                'TopicConfigurations': [
                    {
                        'TopicArn': topic_arn,
                        'Events': ['s3:ObjectCreated:*']
                    }
                ]
            }
        )
        sns_client.subscribe(
            TopicArn=topic_arn,
            Protocol='lambda',
            Endpoint=aws_stack.lambda_function_arn(function_name)
        )
        events_before = run_safe(get_lambda_log_events, function_name) or []
        s3_client.put_object(Bucket=bucket_name, Key=key, Body='something')