kestra-io / plugin-dbt

Apache License 2.0
8 stars 4 forks source link

dbt Cloud Support for different tenants / hosts #92

Closed christophs91 closed 9 months ago

christophs91 commented 9 months ago

Feature description

Hi,

I was trying to test the dbt-cloud plugin in kestra but as our dbt Cloud Tenant is hosted in Europe the API Call is not working.

In the AbstractDbtCloud.java is a hardcoded version of the tenant for the US region.

DefaultHttpClient client = (DefaultHttpClient) FACTORY.createClient(URI.create("https://cloud.getdbt.com").toURL(), httpConfig);

There are overall three different tenants (https://docs.getdbt.com/dbt-cloud/api-v2#/)

Production (US): https://cloud.getdbt.com Production (Europe): https://emea.dbt.com Production (AU): https://au.dbt.com

It is also possible to host dbt Cloud on a Private Hosts (https://docs.getdbt.com/docs/cloud/about-cloud/access-regions-ip-addresses).

Might there be a chance to have an additional parameter to set the tenant / host url?

Thanks and best regards, Christoph

anna-geller commented 9 months ago

you're totally right, we'll see how soon we can fix that