alex_dimov
12/16/2022, 6:15 PMvisch
12/16/2022, 6:48 PMalex_dimov
12/16/2022, 7:19 PMdocker run \
--mount type=bind,src=/absolute/path/to/bigquery/credentials/client_secrets.json,dst=/var/client_secrets.json \
-e TAP_CONNECTWISE_AUTOMATE_DOMAIN='<http://domain.com|domain.com>' \
-e TAP_CONNECTWISE_AUTOMATE_USERNAME='username' \
-e TAP_CONNECTWISE_AUTOMATE_PASSWORD='password' \
-e TAP_CONNECTWISE_AUTOMATE_HEADER_CLIENT_ID='client_id' \
-e TARGET_BIGQUERY_PROJECT_ID=$GCP_PROJECT \
-e GOOGLE_APPLICATION_CREDENTIALS=/var/client_secrets.json \
meltano_cw_demo \
elt tap-connectwise-automate target-bigquery --job_id=cw_automate_to_bigquery
visch
12/16/2022, 7:39 PMvisch
12/16/2022, 7:39 PMjules_huisman
12/16/2022, 10:10 PMdagster-meltano
part of the dagster-ext
there is already a way to create your own ops. from dagster_meltano import meltano_run_op
. Which allows you to dynamically create your own Meltano run commands.
Soon I will add a functionality to also inject Meltano config in a better way. Then you will be able to do something like this (pseudo code):
from dagster_meltano import meltano_run_op
@job
def ingest_for_clients:
for client in clients:
meltano_run_op(
command="tap-connectwise-automate target-bigquery",
config={
domain: client.domain,
username: client.username,
...
}
)()
alex_dimov
12/21/2022, 12:19 PMalex_dimov
12/21/2022, 1:39 PMjules_huisman
12/21/2022, 5:05 PMop
for each client. They will all be in one job
alex_dimov
12/22/2022, 8:09 AMjules_huisman
12/22/2022, 8:10 AMalex_dimov
12/22/2022, 8:11 AM