-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2594 from brunomurino/issue-2533
added option --adapter to dbt init, to create sample profiles.yml bas…
- Loading branch information
Showing
13 changed files
with
155 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
default: | ||
outputs: | ||
|
||
dev: | ||
type: bigquery | ||
method: oauth | ||
project: [GCP project id] | ||
dataset: [the name of your dbt dataset] # You can also use "schema" here | ||
threads: [1 or more] | ||
timeout_seconds: 300 | ||
location: US # Optional, one of US or EU | ||
priority: interactive | ||
retries: 1 | ||
|
||
prod: | ||
type: bigquery | ||
method: service-account | ||
project: [GCP project id] | ||
dataset: [the name of your dbt dataset] | ||
threads: [1 or more] | ||
keyfile: [/path/to/bigquery/keyfile.json] | ||
timeout_seconds: 300 | ||
priority: interactive | ||
retries: 1 | ||
|
||
target: dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
default: | ||
outputs: | ||
|
||
dev: | ||
type: postgres | ||
threads: [1 or more] | ||
host: [host] | ||
port: [port] | ||
user: [dev_username] | ||
pass: [dev_password] | ||
dbname: [dbname] | ||
schema: [dev_schema] | ||
|
||
prod: | ||
type: postgres | ||
threads: [1 or more] | ||
host: [host] | ||
port: [port] | ||
user: [prod_username] | ||
pass: [prod_password] | ||
dbname: [dbname] | ||
schema: [prod_schema] | ||
|
||
target: dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
default: | ||
outputs: | ||
|
||
dev: | ||
type: redshift | ||
threads: [1 or more] | ||
host: [host] | ||
port: [port] | ||
user: [dev_username] | ||
pass: [dev_password] | ||
dbname: [dbname] | ||
schema: [dev_schema] | ||
|
||
prod: | ||
type: redshift | ||
method: iam | ||
cluster_id: [cluster_id] | ||
threads: [1 or more] | ||
host: [host] | ||
port: [port] | ||
user: [prod_user] | ||
dbname: [dbname] | ||
schema: [prod_schema] | ||
|
||
target: dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
plugins/snowflake/dbt/include/snowflake/sample_profiles.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
default: | ||
outputs: | ||
|
||
dev: # User-Password config | ||
type: snowflake | ||
account: [account id + region (if applicable)] | ||
user: [username] | ||
password: [password] | ||
role: [user role] | ||
database: [database name] | ||
warehouse: [warehouse name] | ||
schema: [dbt schema] | ||
threads: [1 or more] | ||
client_session_keep_alive: False | ||
|
||
prod: # Keypair config | ||
type: snowflake | ||
account: [account id + region (if applicable)] | ||
user: [username] | ||
role: [user role] | ||
private_key_path: [path/to/private.key] | ||
private_key_passphrase: [passphrase for the private key, if key is encrypted] | ||
database: [database name] | ||
warehouse: [warehouse name] | ||
schema: [dbt schema] | ||
threads: [1 or more] | ||
client_session_keep_alive: False | ||
|
||
target: dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters