dbx databricks deploy named properties

1.6k views Asked by At

Can anyone provide me a link to an example of using named properties in dbx. The documentation mentions an example of a .json file,

https://dbx.readthedocs.io/en/latest/named_properties.html

but it does not mention how we can invoke this file with sample variables. Do I need to write python code to have a file containing these variables?

I have two enviornments and I want to pass on different variables to the deployment.json file.

2

There are 2 answers

0
Xiang ZHU On

The most recent way to passing var is by using the --jinja-variables-file since dbx 0.6.6. And do not use the env vars, it's not jinja standard.

0
renardeinside On

author of dbx here.

With latest 0.7.0 update we fully support passing both environment variables and variables from file.

Please check: