2022-10-05 19:53:53 +00:00
|
|
|
|
|
|
|
|
# Name your project! Project names should contain only lowercase characters
|
|
|
|
|
# and underscores. A good package name should reflect your organization's
|
|
|
|
|
# name or the intended use of these models
|
2023-09-08 12:56:19 +00:00
|
|
|
name: 'axelar_models'
|
2022-10-05 19:53:53 +00:00
|
|
|
version: '1.0.0'
|
|
|
|
|
config-version: 2
|
|
|
|
|
|
2024-01-24 13:56:56 +00:00
|
|
|
require-dbt-version: ">=1.7.0"
|
|
|
|
|
|
2022-10-05 19:53:53 +00:00
|
|
|
# This setting configures which "profile" dbt uses for this project.
|
|
|
|
|
profile: 'axelar'
|
|
|
|
|
|
|
|
|
|
# These configurations specify where dbt should look for different types of files.
|
|
|
|
|
# The `model-paths` config, for example, states that models in this project can be
|
|
|
|
|
# found in the "models/" directory. You probably won't need to change these!
|
|
|
|
|
model-paths: ["models"]
|
|
|
|
|
analysis-paths: ["analyses"]
|
|
|
|
|
test-paths: ["tests"]
|
2023-01-27 13:47:44 +00:00
|
|
|
seed-paths: ["data"]
|
2022-10-05 19:53:53 +00:00
|
|
|
macro-paths: ["macros"]
|
|
|
|
|
snapshot-paths: ["snapshots"]
|
|
|
|
|
|
|
|
|
|
target-path: "target" # directory which will store compiled SQL files
|
|
|
|
|
clean-targets: # directories to be removed by `dbt clean`
|
|
|
|
|
- "target"
|
2022-10-06 20:52:26 +00:00
|
|
|
- "dbt_modules"
|
2022-10-05 19:53:53 +00:00
|
|
|
- "dbt_packages"
|
|
|
|
|
|
2022-10-06 20:52:26 +00:00
|
|
|
models:
|
|
|
|
|
+copy_grants: true
|
2023-01-10 15:18:57 +00:00
|
|
|
+persist_docs:
|
|
|
|
|
relation: true
|
|
|
|
|
columns: true
|
2023-11-10 18:46:09 +00:00
|
|
|
+on_schema_change: "append_new_columns"
|
2024-11-20 18:02:36 +00:00
|
|
|
axelar_models:
|
|
|
|
|
+pre-hook: '{{ fsc_utils.set_query_tag() }}'
|
2022-10-05 19:53:53 +00:00
|
|
|
|
2022-10-06 20:52:26 +00:00
|
|
|
tests:
|
|
|
|
|
+store_failures: true # all tests
|
2022-10-05 19:53:53 +00:00
|
|
|
|
2022-10-06 20:52:26 +00:00
|
|
|
on-run-start:
|
2022-10-09 11:37:03 +00:00
|
|
|
- "{{ create_udfs() }}"
|
2022-10-06 20:52:26 +00:00
|
|
|
|
2023-01-19 18:53:30 +00:00
|
|
|
on-run-end:
|
|
|
|
|
- '{{ apply_meta_as_tags(results) }}'
|
|
|
|
|
|
2024-03-07 20:13:56 +00:00
|
|
|
dispatch:
|
|
|
|
|
- macro_namespace: dbt
|
|
|
|
|
search_order:
|
|
|
|
|
- axelar-models
|
|
|
|
|
- dbt_snowflake_query_tags
|
|
|
|
|
- dbt
|
|
|
|
|
|
|
|
|
|
query-comment:
|
|
|
|
|
comment: '{{ dbt_snowflake_query_tags.get_query_comment(node) }}'
|
|
|
|
|
append: true # Snowflake removes prefixed comments.
|
|
|
|
|
|
|
|
|
|
|
2022-10-06 20:52:26 +00:00
|
|
|
vars:
|
|
|
|
|
"dbt_date:time_zone": GMT
|
2025-01-15 16:00:44 +00:00
|
|
|
STREAMLINE_INVOKE_STREAMS: FALSE
|
|
|
|
|
STREAMLINE_USE_DEV_FOR_EXTERNAL_TABLES: FALSE
|
2024-04-12 21:19:01 +00:00
|
|
|
UPDATE_SNOWFLAKE_TAGS: TRUE
|
|
|
|
|
OBSERV_FULL_TEST: FALSE
|
|
|
|
|
START_GHA_TASKS: FALSE
|
2024-11-06 15:22:33 +00:00
|
|
|
BRONZE_LOOKBACK_DAYS: 3
|
2024-11-20 18:02:36 +00:00
|
|
|
core_folders: [
|
|
|
|
|
'silver/core',
|
|
|
|
|
'gold/core',
|
|
|
|
|
'bronze/core',
|
|
|
|
|
'models/bronze/streamline',
|
|
|
|
|
'streamline'
|
|
|
|
|
]
|
2024-03-07 20:13:56 +00:00
|
|
|
|
|
|
|
|
#### STREAMLINE 2.0 BEGIN ####
|
|
|
|
|
|
|
|
|
|
API_INTEGRATION: '{{ var("config")[target.name]["API_INTEGRATION"] if var("config")[target.name] else var("config")["dev"]["API_INTEGRATION"] }}'
|
2023-11-30 13:09:06 +00:00
|
|
|
EXTERNAL_FUNCTION_URI: '{{ var("config")[target.name]["EXTERNAL_FUNCTION_URI"] if var("config")[target.name] else var("config")["dev"]["EXTERNAL_FUNCTION_URI"] }}'
|
2024-03-07 20:13:56 +00:00
|
|
|
ROLES: '{{ var("config")[target.name]["ROLES"] }}'
|
2023-09-07 13:05:10 +00:00
|
|
|
|
2024-03-07 20:13:56 +00:00
|
|
|
config:
|
|
|
|
|
# The keys correspond to dbt profiles and are case sensitive
|
|
|
|
|
dev:
|
2024-03-07 22:57:17 +00:00
|
|
|
API_INTEGRATION: aws_axelar_api_dev
|
2024-03-07 20:13:56 +00:00
|
|
|
EXTERNAL_FUNCTION_URI: 5v36zckfli.execute-api.us-east-1.amazonaws.com/stg/
|
|
|
|
|
ROLES:
|
2024-04-12 21:19:01 +00:00
|
|
|
- AWS_LAMBDA_AXELAR_API
|
2024-03-07 20:13:56 +00:00
|
|
|
- INTERNAL_DEV
|
|
|
|
|
prod:
|
|
|
|
|
API_INTEGRATION: aws_axelar_api
|
2024-04-12 21:19:01 +00:00
|
|
|
EXTERNAL_FUNCTION_URI: sfl36j9j2c.execute-api.us-east-1.amazonaws.com/prod/
|
2024-03-07 20:13:56 +00:00
|
|
|
ROLES:
|
2024-04-12 21:19:01 +00:00
|
|
|
- AWS_LAMBDA_AXELAR_API
|
|
|
|
|
- DBT_CLOUD_AXELAR
|
2024-03-07 20:13:56 +00:00
|
|
|
- INTERNAL_DEV
|
2023-09-07 13:05:10 +00:00
|
|
|
|
2024-03-07 20:13:56 +00:00
|
|
|
#### STREAMLINE 2.0 END ####
|