also, what is the best way to use environment vari...
# announcements
c
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
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
ahh ok great
p
It was added fairly recently, but the doc for it is here: https://docs.dagster.io/latest/api/apidocs/config/#dagster.StringSource
m
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!