### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

I pass `AWS_REGION=eu-central-1` to the localstack container in the environment section but it is overwritten with `us-east-1`.


### Expected Behavior

`AWS_REGION` should be `eu-central-1`

### How are you starting LocalStack?

With a docker-compose file

### Steps To Reproduce

This is my localstack container in the docker compose file:

```
  mock-aws:
    image: localstack/localstack-pro:3.1
    ports:
      - "4566:4566"
    volumes:
      - type: bind
        source: ../integration-tests/aws
        target: /etc/localstack/init/ready.d
        read_only: true
      # Path to local Docker UNIX domain socket
      - "/var/run/docker.sock:/var/run/docker.sock"
    environment:
      - LS_LOG=debug
      - AWS_ACCESS_KEY_ID=test
      - AWS_SECRET_ACCESS_KEY=test
      - AWS_REGION=eu-central-1
      - LOCALSTACK_AUTH_TOKEN=${LOCALSTACK_AUTH_TOKEN:- }
      - EMAIL_SENDER_ADDRESS=noreply@host.com

```

I mount a folder which contains bash script to be run to initialize the localstack services.
Here is for example the content of `integration-tests/aws/ses.sh`:

```
#!/bin/bash

awslocal ses verify-email-identity \
  --email-address ${EMAIL_SENDER_ADDRESS} \
  --region ${AWS_REGION}

awslocal ses list-identities \
  --region ${AWS_REGION}

```

The script is executed but `AWS_REGION` seems to be overwritten and now has the value `us-east-1`.
Please note that the other variable called `EMAIL_SENDER_ADDRESS` has the proper value.

See output:
```
local-dev-mock-aws-1  | + awslocal ses verify-email-identity --email-address noreply@hosy.com --region us-east-1
local-dev-mock-aws-1  | 2024-02-13T14:17:04.827  INFO --- [   asgi_gw_1] localstack.request.aws     : AWS ses.VerifyEmailIdentity => 200
local-dev-mock-aws-1  | + awslocal ses list-identities --region us-east-1
local-dev-mock-aws-1  | 2024-02-13T14:17:06.026  INFO --- [   asgi_gw_0] localstack.request.aws     : AWS ses.ListIdentities => 200
local-dev-mock-aws-1  | 2024-02-13T14:17:06.165  INFO --- [   asgi_gw_1] localstack.request.aws     : AWS ses.ListIdentities => 200
local-dev-mock-aws-1  | {
local-dev-mock-aws-1  |     "Identities": [
local-dev-mock-aws-1  |         "noreply@host.com"
local-dev-mock-aws-1  |     ]
local-dev-mock-aws-1  | }
```

This was working with localstack version `2.1.0`

### Environment

```markdown
- OS: Ubuntu 22.04.3 LTS
- LocalStack: 3.1.0
```


### Anything else?

_No response_
)
KINESIS_LATENCY = os.environ.get("KINESIS_LATENCY", "").strip() or "500"
KINESIS_MOCK_PERSIST_INTERVAL = os.environ.get("KINESIS_MOCK_PERSIST_INTERVAL", "").strip() or "5s"
KINESIS_MOCK_LOG_LEVEL = os.environ.get("KINESIS_MOCK_LOG_LEVEL", "").strip()
KINESIS_ERROR_PROBABILITY = float(os.environ.get("KINESIS_ERROR_PROBABILITY", "").strip() or 0.0)
DYNAMODB_ERROR_PROBABILITY = float(os.environ.get("DYNAMODB_ERROR_PROBABILITY", "").strip() or 0.0)
DYNAMODB_READ_ERROR_PROBABILITY = float(
    os.environ.get("DYNAMODB_READ_ERROR_PROBABILITY", "").strip() or 0.0
)
DYNAMODB_WRITE_ERROR_PROBABILITY = float(
    os.environ.get("DYNAMODB_WRITE_ERROR_PROBABILITY", "").strip() or 0.0
)
DYNAMODB_HEAP_SIZE = os.environ.get("DYNAMODB_HEAP_SIZE", "").strip() or "256m"
DYNAMODB_SHARE_DB = int(os.environ.get("DYNAMODB_SHARE_DB") or 0)
DYNAMODB_LOCAL_PORT = int(os.environ.get("DYNAMODB_LOCAL_PORT") or 0)
DYNAMODB_REMOVE_EXPIRED_ITEMS = is_env_true("DYNAMODB_REMOVE_EXPIRED_ITEMS")
SQS_DELAY_PURGE_RETRY = is_env_true("SQS_DELAY_PURGE_RETRY")
SQS_DELAY_RECENTLY_DELETED = is_env_true("SQS_DELAY_RECENTLY_DELETED")
SQS_ENABLE_MESSAGE_RETENTION_PERIOD = is_env_true("SQS_ENABLE_MESSAGE_RETENTION_PERIOD")
SQS_ENDPOINT_STRATEGY = os.environ.get("SQS_ENDPOINT_STRATEGY", "") or "standard"
SQS_DISABLE_MAX_NUMBER_OF_MESSAGE_LIMIT = is_env_true("SQS_DISABLE_MAX_NUMBER_OF_MESSAGE_LIMIT")
SQS_DISABLE_CLOUDWATCH_METRICS = is_env_true("SQS_DISABLE_CLOUDWATCH_METRICS")
SQS_CLOUDWATCH_METRICS_REPORT_INTERVAL = int(
    os.environ.get("SQS_CLOUDWATCH_METRICS_REPORT_INTERVAL") or 60
)
HOSTNAME_FROM_LAMBDA = os.environ.get("HOSTNAME_FROM_LAMBDA", "").strip()
BUCKET_MARKER_LOCAL = (
    os.environ.get("BUCKET_MARKER_LOCAL", "").strip() or DEFAULT_BUCKET_MARKER_LOCAL
)
LAMBDA_DISABLE_AWS_ENDPOINT_URL = is_env_true("LAMBDA_DISABLE_AWS_ENDPOINT_URL")