-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: call aws secretsmanager #1704
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# This prevents dbt from rebuilding the DAG every run, saving time on jobs where it is run repeatedly | ||
config: | ||
partial_parse: True | ||
|
||
warehouse_transforms: # This is the name to use for "profile" | ||
target: prod # The default target. | ||
outputs: # Each of the keys in this dict is a "target" | ||
dev: | ||
type: snowflake | ||
account: edx.us-east-1 | ||
user: DBT_TRANSFORMER | ||
role: DBT_TRANSFORMER_ROLE | ||
password: "{{ env_var('DBT_PASSWORD') }}" | ||
database: DEV | ||
warehouse: TRANSFORMING | ||
# This becomes the prefix for schemas written to by this target, e.g. "123456789_finance" if DEV_SCHEMA_PREFIX=123456789. | ||
# dbt calls this the "target schema" in their docs | ||
schema: "{{ env_var('DEV_SCHEMA_PREFIX') }}" | ||
threads: 10 | ||
prod: | ||
type: snowflake | ||
account: edx.us-east-1 | ||
user: DBT_TRANSFORMER | ||
role: DBT_TRANSFORMER_ROLE | ||
password: "{{ env_var('DBT_PASSWORD') }}" | ||
database: PROD | ||
warehouse: TRANSFORMING | ||
# This is not a real schema name or schema prefix---the generate_schema_name_for_env macro will take care of | ||
# removing this prefix string. Resulting schema names end up being just "finance" or whatever is defined in the | ||
# schema.yml level as a "custom schema". | ||
# dbt calls this the "target schema" in their docs | ||
schema: NO_PREFIX | ||
threads: 10 | ||
edge: | ||
type: snowflake | ||
account: edx.us-east-1 | ||
user: DBT_TRANSFORMER | ||
role: DBT_TRANSFORMER_ROLE | ||
password: "{{ env_var('DBT_PASSWORD') }}" | ||
database: EDGE | ||
warehouse: TRANSFORMING | ||
# This is not a real schema name or schema prefix---the generate_schema_name_for_env macro will take care of | ||
# removing this prefix string. Resulting schema names end up being just "finance" or whatever is defined in the | ||
# schema.yml level as a "custom schema". | ||
# dbt calls this the "target schema" in their docs | ||
schema: NO_PREFIX | ||
threads: 10 | ||
prod_amplitude: | ||
# This target is specifically for running amplitude models, which are relatively time sensitive. | ||
type: snowflake | ||
account: edx.us-east-1 | ||
user: DBT_TRANSFORMER | ||
role: DBT_TRANSFORMER_ROLE | ||
password: "{{ env_var('DBT_PASSWORD') }}" | ||
database: PROD | ||
warehouse: TRANSFORMING | ||
schema: NO_PREFIX | ||
threads: 10 | ||
prod_load_incremental: | ||
# This environment is for dbt initial loading (or reloading) of large incremental tables in DBT that need a larger warehouse | ||
type: snowflake | ||
account: edx.us-east-1 | ||
user: DBT_TRANSFORMER | ||
role: DBT_TRANSFORMER_ROLE | ||
password: "{{ env_var('DBT_PASSWORD') }}" | ||
database: PROD | ||
warehouse: TRANSFORMING_XL | ||
# This is not a real schema name or schema prefix---the generate_schema_name_for_env macro will take care of | ||
# removing this prefix string. Resulting schema names end up being just "finance" or whatever is defined in the | ||
# schema.yml level as a "custom schema". | ||
# dbt calls this the "target schema" in their docs | ||
schema: NO_PREFIX | ||
threads: 10 | ||
ci_tests: | ||
type: snowflake | ||
account: edx.us-east-1 | ||
user: DBT_TRANSFORMER_CI | ||
role: DBT_TRANSFORMER_CI_ROLE | ||
password: "{{ env_var('DBT_PASSWORD') }}" | ||
database: CI_TESTS | ||
warehouse: TRANSFORMING_CI | ||
# The following schema name CI_SCHEMA_NAME is actually a keyword that is used to search and replace in a | ||
# sed command. That is replaced by the actual schema name generated in jenkins job such as PR_1724. | ||
#schema: CI_SCHEMA_NAME | ||
schema: "{{ env_var('CI_SCHEMA_NAME') }}" | ||
threads: 10 | ||
ci_tests_large: | ||
type: snowflake | ||
account: edx.us-east-1 | ||
user: DBT_TRANSFORMER_CI | ||
role: DBT_TRANSFORMER_CI_ROLE | ||
password: "{{ env_var('DBT_PASSWORD') }}" | ||
database: CI_TESTS | ||
warehouse: TRANSFORMING_CI_L | ||
# The following schema name CI_SCHEMA_NAME is actually a keyword that is used to search and replace in a | ||
# sed command. That is replaced by the actual schema name generated in jenkins job such as PR_1724. | ||
#schema: CI_SCHEMA_NAME | ||
schema: "{{ env_var('CI_SCHEMA_NAME') }}" | ||
threads: 10 |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the workspace is a jenkins provided environment variable that points to the jenkins job workspace.
jenkins-job-dsl repo. does not get cloned unless we specify it in the DSL.