Hi Prefectionists prefect duck
Is it possible to reference an environment variable in the
config.toml
? Specific example, using an external Postgres db, and adding its connection URL in the
config.toml
under
[server.database]
. It’d be good to keep the URL a secret, but still version control the file.
Or perhaps there’s a different way of configuring this, instead of adding it in the
.toml
file?
Thanks in advance 🙌
k
Kevin Kho
04/16/2022, 5:45 PM
You can configure the env var directly to override the toml. Like
Copy code
export PREFECT__SERVER__DATABASE=...
but I don’t think the toml file format can read an env var.
Kevin Kho
04/16/2022, 5:47 PM
All of the toml configurations can be configured by env variables
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.