# ask-community

Emir Karamehmetoglu

03/18/2023, 2:58 PM
In the new Pythonic Config API, is there a way to have resources/configs be only partially defined via environment variables at runtime? By this I mean the config/resource will use some default if the environmen variable is not set. (Ideally, also a way to set an env. variable as required). For the old ConfigSchema API, we have simple custom code that does this but I was wondering if there was a native implementation in Dagster now with the new API. Open to using pydantic specific things as well.. (Admittedly, it is actually simple to define this with custom logic, but we have a lot of resources.).