https://dagster.io/ logo
c

Chris Roth

03/26/2020, 8:31 PM
also, what is the best way to use environment variables for dagster.yaml inputs - since i don't want to check postgres credentials into git. would you recommend using sed to replace strings during docker builds?
a

alex

03/26/2020, 8:34 PM
stuff like the postgres user name and password are
StringSource
types which allow either the raw value or
env: ENVIRONMENT_VARIABLE_NAME
Copy code
postgres:
  username: steve
  password:
    env: PG_PASSWORD
c

Chris Roth

03/26/2020, 8:35 PM
ahh ok great
p

prha

03/26/2020, 8:35 PM
It was added fairly recently, but the doc for it is here: https://docs.dagster.io/latest/api/apidocs/config/#dagster.StringSource
m

Michael Lynton

04/01/2021, 7:56 PM
I just wanted to share, that I got this
StringSource
working in a new resource I was testing out. I got it to work with the plain text value in playground, or with the environment variable name in playground. Super cool!! Thank you!
2 Views