<!-- 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

When using java-aws-sdk `CreateFunctionRequest` and `UpdateFunctionCodeRequest` with `publish` flag set to `true` should publish new version of lambda function. When I tried such operations against localstack container in version `localstack/localstack:0.11.2` those operations didn't publish new function version.

## Expected behavior

`CreateFunctionResponse` nad `UpdateFunctionCodeResponse` when `publish` flag is set to `true` will return under `version` field new version of changed AWS lambda function.

## Actual behavior

Even flag `publish` is set to `true`, above operations responses return in version `$LATEST` value what indicate that operation didn't produce new function version

# Steps to reproduce
- check available versions of given function
- create function or update existing with `publish` flag set to `true`
```
CreateFunctionRequest.builder
      .functionName(functionName)
      .runtime(runtimeName)
      .handler(handlerName)
      .layers(functionLayers)
      .role(lambdaExecutionRole)
      .tags(cdsLambdaTags)
      .memorySize(memorySize)
      .code(functionCode)
      .publish(true)
      .build
//or
UpdateFunctionCodeRequest.builder()
      .functionName(functionName)
      .zipFile(functionCode.zipFile())
      .publish(true)
      .build()
```
- check available versions of given function

## Command used to start LocalStack

Used testcontainers java localstack library.

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

```
CreateFunctionRequest.builder
      .functionName(functionName)
      .runtime(runtimeName)
      .handler(handlerName)
      .layers(functionLayers)
      .role(lambdaExecutionRole)
      .tags(cdsLambdaTags)
      .memorySize(memorySize)
      .code(functionCode)
      .publish(true)
      .build
//or
UpdateFunctionCodeRequest.builder()
      .functionName(functionName)
      .zipFile(functionCode.zipFile())
      .publish(true)
      .build()
```
result = lambda_api.get_event_sources(source_arn='the_arn')
            self.assertEqual(len(result), 1)
            self.assertEqual(result[0].get('UUID'), self.TEST_UUID)
            
            result = lambda_api.get_event_sources(source_arn='the_')
            self.assertEqual(len(result), 0)
    def test_get_event_sources_with_paths(self):
        with self.app.test_request_context():
            lambda_api.EVENT_SOURCE_MAPPINGS.append(
                {
                    'UUID': self.TEST_UUID,
                    'EventSourceArn': 'the_arn/path/subpath'
                })
            
            result = lambda_api.get_event_sources(source_arn='the_arn')
            self.assertEqual(len(result), 1)
            result = lambda_api.get_event_sources(source_arn='the_arn/path')
            self.assertEqual(len(result), 1)
    def test_delete_event_source_mapping(self):
        with self.app.test_request_context():
            lambda_api.EVENT_SOURCE_MAPPINGS.append({'UUID': self.TEST_UUID})
            result = lambda_api.delete_event_source_mapping(self.TEST_UUID)
            self.assertEqual(json.loads(result.get_data()).get('UUID'), self.TEST_UUID)
            self.assertEqual(0, len(lambda_api.EVENT_SOURCE_MAPPINGS))
    def test_invoke_RETURNS_415_WHEN_not_json_input(self):
        with self.app.test_request_context() as context:
            context.request._cached_data = '~notjsonrequest~'
            response = lambda_api.invoke_function(self.FUNCTION_NAME)
            self.assertEqual('415 UNSUPPORTED MEDIA TYPE', response.status)
    def _request_response(self, context):