### 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
FunctionName=function_name,
        )
        snapshot.match("invocation_error", result)
    @pytest.mark.skipif(
        not is_aws_cloud(), reason="Not yet supported. Need to report exit in Lambda init binary."
    )
    @markers.aws.validated
    def test_lambda_runtime_exit_segfault(self, aws_client, create_lambda_function, snapshot):
        """Test Lambda that exits during runtime startup with a segmentation fault."""
        snapshot.add_transformer(snapshot.transform.regex(PATTERN_UUID, "<uuid>"))
        function_name = f"test-function-{short_uid()}"
        create_lambda_function(
            func_name=function_name,
            handler_file=TEST_LAMBDA_PYTHON_RUNTIME_EXIT_SEGFAULT,
            handler="lambda_runtime_exit_segfault.handler",
            runtime=Runtime.python3_10,
        )
        result = aws_client.lambda_.invoke(
            FunctionName=function_name,
        )
        snapshot.match("invocation_error", result)
    @markers.aws.validated
    def test_lambda_handler_error(self, aws_client, create_lambda_function, snapshot):
        """Test Lambda that raises an exception in the handler."""
        snapshot.add_transformer(snapshot.transform.regex(PATTERN_UUID, "<uuid>"))
        function_name = f"test-function-{short_uid()}"
        create_lambda_function(
            func_name=function_name,
            handler_file=TEST_LAMBDA_PYTHON_HANDLER_ERROR,
            handler="lambda_handler_error.handler",