<!-- 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()
```
def test_get_java_lib_folder_classpath_archive_is_None(self):
        self.assertRaises(TypeError, lambda_executors.Util.get_java_classpath, None)
    @mock.patch('localstack.services.awslambda.lambda_executors.store_cloudwatch_logs')
    def test_executor_store_logs_can_handle_milliseconds(self, mock_store_cloudwatch_logs):
        mock_details = mock.Mock()
        t_sec = time.time()  
        t_ms = time.time() * 1000  
        
        lambda_executors._store_logs(mock_details, 'mock log output', t_ms)
        
        today = datetime.datetime.utcfromtimestamp(t_sec).strftime('%Y/%m/%d')
        log_stream_name = mock_store_cloudwatch_logs.call_args_list[0].args[1]
        parts = log_stream_name.split('/')
        date_part = '/'.join(parts[:3])
        self.assertEqual(date_part, today)
    def _create_function(self, function_name, tags={}):
        arn = lambda_api.func_arn(function_name)
        lambda_api.ARN_TO_LAMBDA[arn] = LambdaFunction(arn)
        lambda_api.ARN_TO_LAMBDA[arn].versions = {
            '$LATEST': {'CodeSize': self.CODE_SIZE, 'CodeSha256': self.CODE_SHA_256, 'RevisionId': self.REVISION_ID}
        }
        lambda_api.ARN_TO_LAMBDA[arn].handler = self.HANDLER
        lambda_api.ARN_TO_LAMBDA[arn].runtime = self.RUNTIME
        lambda_api.ARN_TO_LAMBDA[arn].timeout = self.TIMEOUT
        lambda_api.ARN_TO_LAMBDA[arn].tags = tags
        lambda_api.ARN_TO_LAMBDA[arn].envvars = {}
        lambda_api.ARN_TO_LAMBDA[arn].last_modified = self.LAST_MODIFIED
        lambda_api.ARN_TO_LAMBDA[arn].role = self.ROLE
        lambda_api.ARN_TO_LAMBDA[arn].memory_size = self.MEMORY_SIZE
    def _assert_contained(self, child, parent):