dbx
dbx copied to clipboard
[DOCS] Add documentation on how to work with environment variables
Add documentation piece on how to work with environment variables in dbx execute and in job definitions.
is this possible?
hi @vitoravancini , yes, but a bit cumbersome. In short, there are two pieces into it:
- providing secrets
- providing non-secret values
As for secrets, you should use the Databricks Secrets approach and not rely on dbx.
As for non-secret values, you can do the following:
- Add a file with env variables in dotenv format to your package, as described here
- Load this file by path using
python-dotenvpackage.
This is a very short summary, detailed docs are yet to be written.