visch
02/03/2022, 1:50 PMvisch
02/03/2022, 1:51 PMloaders:
- name: target-postgres
variant: transferwise
pip_url: pipelinewise-target-postgres psycopg2-binary psycopg2
config:
host: localhost
port: 5432
user: postgres
dbname: postgres
password: cb7cd89dc59e4da7b249e4f8f7c929d6
transformers:
- name: dbt
pip_url: dbt==0.21.1
config:
target: postgres
files:
- name: dbt
pip_url: git+<https://gitlab.com/meltano/files-dbt.git@config-version-2>
This is following the default "meltano optimized" loader and configuration available (Works with meltano run tap-name target-postgres
) but when dbt is installed following all the docs, it still doesn't workvisch
02/03/2022, 1:52 PMvisch
02/03/2022, 1:54 PMmeltano invoke dbt:run
https://docs.meltano.com/guide/transformation#:~:text=your%20pipeline%20using-,invoke%20dbt%3Arun,-.pat_nadolny
02/03/2022, 2:41 PMmeltano elt
because no postgres environment variables would be set automatically otherwise. In the transform section of the getting started guide I changed it to use invoke
and it has details for setting up environment configurations for it to work. Also check out this section for how I tried to describe the two different ways of executing dbtpat_nadolny
02/03/2022, 2:42 PM