Skip to content
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

add sl env var support #6106

Open
wants to merge 2 commits into
base: current
Choose a base branch
from
Open

add sl env var support #6106

wants to merge 2 commits into from

Conversation

mirnawong1
Copy link
Contributor

you can now use ea or en vars to connect to SL.

this pr creates a snippet to add this info in various places.

linear and slack thread

@mirnawong1 mirnawong1 requested a review from a team as a code owner September 20, 2024 11:27
Copy link

vercel bot commented Sep 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs-getdbt-com ✅ Ready (Inspect) Visit Preview Sep 20, 2024 11:38am

@github-actions github-actions bot added content Improvements or additions to content size: small This change will take 1 to 2 days to address Docs team Authored by the Docs team @dbt Labs labels Sep 20, 2024
@@ -0,0 +1 @@
Use [Extended Attributes](/docs/dbt-cloud-environments#extended-attributes) and [Environment Variables](/docs/build/environment-variables) when connecting to the Semantic Layer. If you set a value directly in the Semantic Layer Credentials, it will have a higher priority than Extended Attributes. When using environment variables, the default value for the environment will be used.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aiguofer just double checking that the user would be adding this in their env settings and then adding DBT_ENV_SECRET in the SL credentials page?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct.

For example, using something like {{env_var('DBT_WAREHOUSE')}} to set the warehouse value in your SL credentials would work.

Similarly, if you set your account value in your connection using Extended Attributes with a value like {{env_var('DBT_ACCOUNT')}}, we will now be able to do that look up for the Extended Attributes AND the env var.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content Docs team Authored by the Docs team @dbt Labs size: small This change will take 1 to 2 days to address
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants