visch
02/03/2022, 9:24 PMtransformers:
- name: dbt
pip_url: dbt-postgres==1.0.0
settings:
- name: password
kind: password
config:
target: postgres
host: localhost
port: 5432
user: postgres
dbname: postgres
Then I run meltano config dbt set password abcde
and meltano puts the password in meltano.yml, hmm. Maybe my expectations are wrong here (I have the same password in 3 places on this project, tap-postgres, target-postgres, and dbt. )visch
02/03/2022, 9:24 PMedgar_ramirez_mondragon
02/03/2022, 9:27 PMpassword
set to any value inside the plugin config
, it will take precedence and meltano will overwrite it there iircvisch
02/03/2022, 9:29 PMaaronsteers
02/03/2022, 9:34 PMkind: password
is set, I don't think the value should be landing in meltano.yml.visch
02/03/2022, 9:35 PMvisch
02/03/2022, 9:35 PMaaronsteers
02/03/2022, 9:37 PMdotenv
or db
. Here's the syntax for explicitly setting a storage location, as a workaround at least:
# Set, unset, or reset in a specific location
meltano config <plugin> set --store=meltano_yml <name> <value> # set in `meltano.yml`
meltano config <plugin> unset --store=dotenv <name> # unset in `.env`
meltano config <plugin> reset --store=db # reset in system database
aaronsteers
02/03/2022, 9:37 PMaaronsteers
02/03/2022, 9:38 PMkind: password
is not directing the value to one of those stores.visch
02/03/2022, 9:41 PMedgar_ramirez_mondragon
02/03/2022, 9:42 PMnamespace
to your dbt plugin definition?visch
02/03/2022, 9:42 PMPS C:\code\bamboohr2ad> meltano config dbt set --store=dotenv password cb7cd89dc59e4da7b249e4f8f7c929d6
Transformer 'dbt' setting '['password']' could not be set in `.env`:
No workievisch
02/03/2022, 9:42 PMedgar_ramirez_mondragon
02/03/2022, 9:45 PMmeltano.yml
is considered custom by meltano
⢠A plugin without one means it was discovered. So its settings are discovered too
⢠What you put in settings
for a discovered plugin is completely ignored by meltanoedgar_ramirez_mondragon
02/03/2022, 9:46 PMsettings
visch
02/03/2022, 9:46 PMPS C:\code\bamboohr2ad> meltano config dbt list
project_dir [env: DBT_PROJECT_DIR] current value: 'C:\\code\\bamboohr2ad/transform' (default: '$MELTANO_PROJECT_ROOT/transform')
profiles_dir [env: DBT_PROFILES_DIR] current value: 'C:\\code\\bamboohr2ad/transform/profile' (default: '$MELTANO_PROJECT_ROOT/transform/profile')
target [env: DBT_TARGET] (default: '$MELTANO_LOAD__DIALECT') current value: 'postgres' (from `meltano.yml`)
source_schema [env: DBT_SOURCE_SCHEMA] current value: None (default: '$MELTANO_LOAD__TARGET_SCHEMA')
target_schema [env: DBT_TARGET_SCHEMA] current value: 'analytics' (default)
models [env: DBT_MODELS] current value: ' my_meltano_project' (default: '$MELTANO_TRANSFORM__PACKAGE_NAME $MELTANO_EXTRACTOR_NAMESPACE my_meltano_project')
Custom, possibly unsupported by the plugin:
host [env: DBT_HOST] current value: 'localhost' (from `meltano.yml`)
port [env: DBT_PORT] current value: 5432 (from `meltano.yml`)
user [env: DBT_USER] current value: 'postgres' (from `meltano.yml`)
dbname [env: DBT_DBNAME] current value: 'postgres' (from `meltano.yml`)
Custom extras, plugin-specific options handled by Meltano:
_settings [env: DBT__SETTINGS] current value: [{'name': 'password', 'kind': 'password'}] (from `meltano.yml`)
edgar_ramirez_mondragon
02/03/2022, 9:47 PMaaronsteers
02/03/2022, 9:49 PMaaronsteers
02/03/2022, 9:49 PMvisch
02/03/2022, 9:50 PMvisch
02/03/2022, 9:51 PMvisch
02/03/2022, 9:51 PMaaronsteers
02/03/2022, 11:04 PM