https://dagster.io/ logo
#ask-community
Title
# ask-community
c

Cezary Pukownik

03/30/2022, 7:27 AM
Hi, Is there an option to set something like "Dagster Instanse Variable"? For example instance name that is accesible by context? I want to create one code, that run differently on DEV and PROD enviroment. And there is a instance specific setting file
dagster.yaml
in
DAGSTER_HOME
where this could be defined and I find also an
DagsterInstance
object that is accesible by
op
. Can I defined in
dagster.yaml
some variables and get acces to it by
DagstenInstance
object? Or Environment Variables are my only bet? DBT has simmilar aprouch thought
profile.yaml
files.
j

johann

03/30/2022, 2:36 PM
Hi Cezary, in most cases people use Resources to inject different behavior for dev/prod jobs.