<!-- Love localstack? Please consider supporting our collective:
👉  https://opencollective.com/localstack/donate -->

# Type of request: This is a ...

[X] bug report
[ ] feature request

# Detailed description
Running docker-compose with `latest` or `0.11.3` causes messages to come out wrong. Going back to `0.11.2` they work fine.

Executing the lambda directly the serialization happens correctly. So it's an issue somewhere in the event bridge.

## Expected behavior

Messages published to an event bus which are ruled to a Lambda should deserialize to the correct information.

## Actual behavior

The information is incorrect.

In 0.11.2 I get:

```
localstack_main | START RequestId: d4e76268-5617-169a-e9f1-0b0f76fe30e9 Version: $LATEST
localstack_main | Executing Lambda::BeginQCHandler | FileId: 957481
localstack_main | It's wrong: Exception
```

In 0.11.3 I get:

```
localstack_main | START RequestId: daa063db-42e8-1b69-3c64-34ced4eaecaf Version: $LATEST
localstack_main | Executing Lambda::BeginQCHandler | FileId: 0
localstack_main | It's wrong: Exception
```

The `FileId` is `0` when it should be the value from the event.

# Steps to reproduce

## Command used to start LocalStack

`sudo docker-compose up` using the compose file from the repository.

## Client code (AWS SDK code snippet, or sequence of "awslocal" commands)

Setup aws stuff:

```
awslocal iam create-role --role-name lambda-role --assume-role-policy-document file://testrole.json
dotnet tool run dotnet-lambda package -pl ./src/TestLocalStack.Workflows.MediaServices/ -o ./output/QCWorkflowBeginQCHandler.zip -c Release -f netcoreapp3.1 --msbuild-parameters "--self-contained true"
awslocal lambda create-function --function-name workflow-begin-qc --runtime dotnetcore3.1 --memory-size 256 --timeout 60 --zip-file fileb://output/QCWorkflowBeginQCHandler.zip --handler TestLocalStack.Workflows.MediaServices::TestLocalStack.Workflows.MediaServices.QCWorkflowHandler::BeginQCHandler --role arn:aws:iam::000000000000:role/lambda-role
awslocal events create-event-bus --name test-event-bus
awslocal events put-rule --name request-qc-event-rule --event-bus-name test-event-bus --event-pattern "{\"source\":[\"test.events\"],\"detail-type\":[\"QCRequestEvent\"]}"
awslocal events put-targets --rule request-qc-event-rule --event-bus-name test-event-bus --targets "Id"="1","Arn"="arn:aws:lambda:us-east-1:000000000000:function:workflow-begin-qc"
awslocal lambda add-permission --function-name workflow-begin-qc --statement-id request-qc-event-rule-statement --action 'lambda:InvokeFunction' --principal events.amazonaws.com --source-arn arn:aws:events:us-east-1:000000000000:rule/request-qc-event-rule
```

Lambda Code

```csharp
public class QCWorkflowHandler
{
    public QCWorkflowHandler()
    {
    }

    public async Task<RequestQCResponse> BeginQCHandler(QCRequestEvent request, ILambdaContext context)
    {
        context.Logger.LogLine($"Executing Lambda::BeginQCHandler | FileId: {request.FileId}");

        throw new Exception("It's wrong");

        return new RequestQCResponse
        {
            Message = $"The requested FileId = {request.FileId}"
        };
    }
}

public class RequestQCResponse
{
    public string MessageId { get; set; } = null!;

    public string Message { get; set; } = null!;
}

public class QCRequestEvent
{
    public int FileId { get; set; }
}
```

Publishing the event:

```
awslocal events put-events --entries file://testevent.json
```

testevent.json
```json
[
	{
		"Source": "test.events",
		"DetailType": "QCRequestEvent",
		"Detail": "{\"fileId\":957481}",
		"EventBusName": "test-event-bus"
	}
]
```
}
            }
        }
        """
        state_machine_arn = self.sfn_client.create_state_machine(
            name=sm_name,
            definition=state_machine_definition,
            roleArn=sm_role_arn
        )['stateMachineArn']
        topic_arn = self.sns_client.create_topic(Name=topic_name)['TopicArn']
        self.sns_client.subscribe(TopicArn=topic_arn, Protocol='http', Endpoint=endpoint)
        queue_url = self.sqs_client.create_queue(QueueName=queue_name)['QueueUrl']
        queue_arn = aws_stack.sqs_queue_arn(queue_name)
        event = {
            'env': 'testing'
        }
        self.events_client.put_rule(
            Name=rule_name,
            ScheduleExpression='rate(1 minutes)'
        )
        self.events_client.put_targets(
            Rule=rule_name,
            Targets=[
                {
                    'Id': topic_target_id,
                    'Arn': topic_arn,
                    'Input': json.dumps(event)
                },
                {
                    'Id': sm_target_id,