Paulo Henrique Orind
01/16/2024, 9:29 AMElon Gliksberg
01/16/2024, 10:04 AMprofiles.yml using environment variables.
Here's an example.Paulo Henrique Orind
01/16/2024, 10:36 AMElon Gliksberg
01/16/2024, 10:37 AMedr without a profiles.yml that defines how to connect to the Elementar schema. Care to elaborate why can't you have the profiles.yml file?Paulo Henrique Orind
01/16/2024, 10:38 AMElon Gliksberg
01/16/2024, 10:46 AMprofiles.yml file on your Airflow worker that is purely a template, like this:
profile:
target: prod
outputs:
prod:
type: postgres
host: 127.0.0.1
# IMPORTANT: Make sure to quote the entire Jinja string here
user: "{{ env_var('DBT_USER') }}"
password: "{{ env_var('DBT_PASSWORD') }}"
....
Then, you run edr with those environment variables filled from your secret manager, not S3.
What do you think?Paulo Henrique Orind
01/16/2024, 12:57 PM