### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

Localstack failed to start runtime environment  because parameter validation failed:

```
localstack_main  | 2023-08-30T02:29:12.992  WARN --- [-g:$LATEST_0] l.s.l.i.runtime_environmen : Failed to start runtime environment for ID=347b7abb3b6dfaa3ff89b7e8370ab803 with: Parameter validation failed:
localstack_main  | Invalid length for parameter RoleSessionName, value: 1, valid min length: 2
localstack_main  | Traceback (most recent call last):
localstack_main  |   File "/opt/code/localstack/localstack/services/lambda_/invocation/runtime_environment.py", line 172, in start
localstack_main  |     self.runtime_executor.start(self.get_environment_variables())
localstack_main  |   File "/opt/code/localstack/localstack/services/lambda_/invocation/runtime_environment.py", line 92, in get_environment_variables
localstack_main  |     credentials = self.get_credentials()
localstack_main  |   File "/opt/code/localstack/localstack/services/lambda_/invocation/runtime_environment.py", line 268, in get_credentials
localstack_main  |     return sts_client.assume_role(
localstack_main  |   File "/opt/code/localstack/.venv/lib/python3.10/site-packages/botocore/client.py", line 535, in _api_call
localstack_main  |     return self._make_api_call(operation_name, kwargs)
localstack_main  |   File "/opt/code/localstack/.venv/lib/python3.10/site-packages/botocore/client.py", line 936, in _make_api_call
localstack_main  |     request_dict = self._convert_to_request_dict(
localstack_main  |   File "/opt/code/localstack/.venv/lib/python3.10/site-packages/botocore/client.py", line 1007, in _convert_to_request_dict
localstack_main  |     request_dict = self._serializer.serialize_to_request(
localstack_main  |   File "/opt/code/localstack/.venv/lib/python3.10/site-packages/botocore/validate.py", line 381, in serialize_to_request
localstack_main  |     raise ParamValidationError(report=report.generate_report())
localstack_main  | botocore.exceptions.ParamValidationError: Parameter validation failed:
localstack_main  | Invalid length for parameter RoleSessionName, value: 1, valid min length: 2
localstack_main  | 2023-08-30T02:29:12.994 DEBUG --- [-g:$LATEST_0] l.u.c.docker_sdk_client    : Stopping container: localstack-main-lambda-g-347b7abb3b6dfaa3ff89b7e8370ab803
localstack_main  | 2023-08-30T02:29:13.010 DEBUG --- [-g:$LATEST_0] l.s.l.i.runtime_environmen : Unable to shutdown runtime handler '347b7abb3b6dfaa3ff89b7e8370ab803'
```

### Expected Behavior

Localstack should start runtime environment and lambda

### How are you starting LocalStack?

With a docker-compose file

### Steps To Reproduce

#### How are you starting localstack (e.g., `bin/localstack` command, arguments, or `docker-compose.yml`)

    docker-compose up

```
version: "3.8"

services:
  localstack:
    container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
    image: localstack/localstack:2.2.0
    ports:
      - "127.0.0.1:4566:4566"            # LocalStack Gateway
      - "127.0.0.1:4510-4559:4510-4559"  # external services port range
    environment:
      - DEBUG=1
      - DOCKER_HOST=unix:///var/run/docker.sock
      - SERVICES=sqs,lambda,s3
    volumes:
      - "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
      - "/var/run/docker.sock:/var/run/docker.sock"
      - "./localstack:/etc/localstack"
      - "./resources:/resources"
    networks:
      - localstack-network
      
networks:
  localstack-network:
      name: localstack-network
```

#### Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)
ready.d/init.sh

```
#!/bin/bash

awslocal lambda create-function \
    --region us-east-1 \
    --function-name g \
    --runtime=nodejs16.x \
    --timeout=100 \
    --memory-size 256 \
    --handler handleCLSPreprocessing.handler \
    --role arn:aws:iam::000000000000:role/lambda-role \
    --zip-file fileb:///resources/lambda.zip  \
    --environment file:///resources/environment.json

awslocal sqs create-queue \
    --region us-east-1 \
    --queue-name cls-preprocessing-fifo \
    --attributes '{"VisibilityTimeout": "600"}'

awslocal sqs create-queue \
    --region us-east-1 \
    --queue-name lambda-out \
    --attributes '{"VisibilityTimeout": "900"}'

awslocal sqs create-queue \
    --region us-east-1 \
    --queue-name lambda-in \
    --attributes '{"VisibilityTimeout": "600"}'

awslocal lambda create-event-source-mapping \
  --region us-east-1 \
  --function-name g \
  --batch-size 1 \
  --event-source-arn arn:aws:sqs::000000000000:lambda-in \
  --starting-position LATEST

awslocal s3 mb s3://bucket
```

index.js:
```
exports.handler = async (event, context) => {
    const record = event.Records ? event.Records[0] : event.records[0];
    let body = JSON.parse(record.body);
    console.log(`body=>${body}`);
};
```

environment.json:
```
{
  "Variables": {
    "ENVIRONMENT": "IT"
  }
}
```



After LocalStack started, send message to `lambda-in` queue:
```
aws sqs send-message --endpoint-url http://localhost:4566 --queue-url http://localhost:4566/000000000000/lambda-in --message-body file://message.json
```

### Environment

```markdown
- OS: macOS Ventura 13.5.1
- LocalStack: 2.2.0
```


### Anything else?

Similar setup works with LocalStack 1.4.0
import threading
import time
from concurrent.futures import ThreadPoolExecutor
from io import BytesIO
from typing import Dict, TypeVar
import pytest
from botocore.config import Config
from botocore.response import StreamingBody
from localstack import config
from localstack.aws.api.lambda_ import Architecture, Runtime
from localstack.aws.connect import ServiceLevelClientFactory
from localstack.services.lambda_.lambda_api import use_docker
from localstack.testing.aws.lambda_utils import (
    RUNTIMES_AGGREGATED,
    concurrency_update_done,
    get_invoke_init_type,
    is_old_local_executor,
    is_old_provider,
    update_done,
)
from localstack.testing.aws.util import create_client_with_keys, is_aws_cloud
from localstack.testing.pytest import markers
from localstack.testing.pytest.snapshot import is_aws
from localstack.testing.snapshots.transformer import KeyValueBasedTransformer
from localstack.testing.snapshots.transformer_utility import PATTERN_UUID
from localstack.utils import files, platform, testutil
from localstack.utils.aws.arns import lambda_function_name
from localstack.utils.files import load_file
from localstack.utils.http import safe_requests
from localstack.utils.platform import Arch, get_arch, is_arm_compatible, standardized_arch