### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

- following the [installation steps](https://docs.localstack.cloud/getting-started/installation/) fails when validating localstack configuration

- error
![image](https://github.com/localstack/localstack/assets/10324554/d82ef62e-c8b8-402e-8195-e691733cfeb1)

- localstack is indeed running
![image](https://github.com/localstack/localstack/assets/10324554/44d7180a-5090-416d-afa9-c4eaaedca33e)


### Expected Behavior

- localstack can consume the path I pass `--file`

### 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 -d
    localstack config validate --file ./compose.yaml


### Environment

```markdown
OS: Ubuntu 20.04
    LocalStack: latest
```


### Anything else?

- you can reproduce [on this branch](https://github.com/noahehall/localstack/tree/rds) if it still exists
  - else switch to the develop branch
if service in API_DEPENDENCIES:
            stack.extend(API_DEPENDENCIES[service])
    return result
@functools.lru_cache()
def get_enabled_apis() -> Set[str]:
    """
    Returns the list of APIs that are enabled through the SERVICES variable. If the SERVICES variable is empty,
    then it will return all available services. Meta-services like "serverless" or "cognito", and dependencies are
    resolved.
    The result is cached, so it's safe to call. Clear the cache with get_enabled_apis.cache_clear().
    """
    services_env = os.environ.get("SERVICES", "").strip()
    services = None
    if services_env and not is_env_true("EAGER_SERVICE_LOADING"):
        LOG.warning("SERVICES variable is ignored if EAGER_SERVICE_LOADING=0.")
    elif services_env:
        
        
        services = []
        for service_port in re.split(r"\s*,\s*", services_env):
            
            parts = re.split(r"[:=]", service_port)
            service = parts[0]
            services.append(service)
    if not services:
        from localstack.services.plugins import SERVICE_PLUGINS
        services = SERVICE_PLUGINS.list_available()
    return resolve_apis(services)
def is_api_enabled(api: str) -> bool: