-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CT-2785] [Feature] support .env file #8026
Comments
@RobbertDM I agree! What do you think of the |
Looks good, for us it's mostly about not checking credentials into git but still being able to share the profiles.yml across team members, so atm we work with the above We also use the same |
Right on — I'm going to close this one in favor of #6207 |
Since the linked tickets have been closed and this has been kicked out of scope there, might be good to reopen this issue. Basically all we want is that dbt reads a .env file and that I can access those vars using |
Is this your first time submitting a feature request?
Describe the feature
It would be cool if you could just drop a
.env
file in the directory next todbt_project.yml
andprofiles.yml
so you can dodbt run --env_file=./.env
or even specifyenv_file: .env
in yourprofiles.yml
.Describe alternatives you've considered
I think many people are now doing
set -a; source .env; set +a
beforedbt run
.Who will this benefit?
Anyone who has their environment variables specified in a
.env
file.Typically, that would contain db hostname and credentials, e.g.
POSTGRES_USER=my_postgres_user
.Are you interested in contributing this feature?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: