-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathprofiles.yml
More file actions
91 lines (85 loc) · 2.55 KB
/
profiles.yml
File metadata and controls
91 lines (85 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
life_admin_dbt:
target: dev
outputs:
dev:
type: bigquery
location: "{{ env_var('DBT_BQ_LOCATION') }}"
project: "{{ env_var('DBT_BQ_PROJECT') }}"
method: service-account
dataset: ticktick_dbt_dev
# Use keyfile_json and an environment variable. This is a base64 string NOT a json object
# how to gen the base64 string: base64 -w 0 bq_sa.json > sa.txt
keyfile: "./sa.json"
threads: 16
prod:
type: bigquery
location: "{{ env_var('DBT_BQ_LOCATION') }}"
project: "{{ env_var('DBT_BQ_PROJECT') }}"
method: service-account
dataset: ticktick_dbt_prod
keyfile: "./sa.json"
threads: 16
CI:
type: bigquery
location: "{{ env_var('DBT_BQ_LOCATION') }}"
project: "{{ env_var('DBT_BQ_PROJECT') }}"
method: service-account
dataset: "{{ env_var('DBT_CI_SCHEMA','ticktick_dbt_ci')}}"
keyfile: "./sa.json"
threads: 16
# EL profile to load from data in fetched at runtime
load_raw:
type: duckdb
path: './duckdb.dbt'
extensions: ['httpfs']
threads: 16
secrets:
- type: s3
region: asia-southeast1
key_id: "{{ env_var('GCS_KEY') }}"
secret: "{{ env_var('GCS_SECRET') }}"
endpoint: "storage.googleapis.com"
stage_raw:
type: bigquery
location: "{{ env_var('DBT_BQ_LOCATION') }}"
project: "{{ env_var('DBT_BQ_PROJECT') }}"
method: service-account
# this is just arbitrary value won't get picked up by
# the actual dbt macro external table
dataset: raw
keyfile: "./sa.json"
threads: 16
# ticktick EL profile
load_snapshot:
type: duckdb
path: './duckdb.dbt'
extensions: ['httpfs']
threads: 16
secrets:
- type: s3
region: asia-southeast1
key_id: "{{ env_var('GCS_KEY') }}"
secret: "{{ env_var('GCS_SECRET') }}"
endpoint: "storage.googleapis.com"
dump_snapshot:
type: duckdb
path: './duckdb.dbt'
extensions: ['httpfs']
threads: 16
secrets:
- type: s3
region: asia-southeast1
key_id: "{{ env_var('GCS_KEY') }}"
secret: "{{ env_var('GCS_SECRET') }}"
endpoint: "storage.googleapis.com"
elementary:
target: default
outputs:
default:
type: bigquery
location: "{{ env_var('DBT_BQ_LOCATION') }}"
project: "{{ env_var('DBT_BQ_PROJECT') }}"
method: service-account
dataset: ticktick_dbt_{{ env_var('DBT_TARGET') }}_elementary
keyfile: "/tmp/sa.json"
threads: 16