I am relatively new to DBT and I have been reading about env_var
and I want to use this in a couple of situations and I am having difficultly and looking for some support.
firstly I am trying to use it in my profiles.yml file to replace the user and password so that this can be set when it is invoked. When trying to test this locally (before implementing this on our AWS side) I am failing to find the right syntax and not finding anything useful online. I have tried variations of:
dbt run --vars '{DBT_USER: my_username, DBT_PASSWORD=my_password}'
but it is not recognizing and giving nothing useful error wise. When running dbt run by itself it does ask for DBT_USER
so it is expecting it, but doesn't detail how
I would also like to use it in my dbt_project.yml
for the schema but I assume that this will be similar to the above, just a third variable at the end. Is that the case?
Thanks