-
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
Add command to auto-populate profiles.yml
#3462
Comments
Right on—I think this is what In fact, it already does a few of these things:
To get this where we'd want it to be (perhaps more controversial):
I'm curious to get your thoughts on those pieces in particular. Adjacent to the above:
I agree! We're planning to give the syntax here another look (#1958) ahead of releasing v1.0 later this year. My plan would be a more intuitive syntax going forward, with backwards compatibility for the current syntax, of course.
I don't think |
Thanks for your always thorough response @jtcohen6. To be clear (and apologies if you've understood this already), I see this is a separate function to creating a dbt project. The use-case is where a dbt project already exists, and we're onboarding a new user. As I see currently, this is a distinct function from The workflow I'm imagining:
Are we on the same page? If these profile defaults aren't stored in |
Ah, I totally missed this piece. Ok, I'm with you - thanks for clarifying.
This is what I'm less sure about. In my view,
So I do see both of these within the scope of a (fancier, more powerful, more interactive)
To accomplish this, we could rework Two reservations:
|
This would be great. On reservation 1 - great point, interestingly AWS don't do this with On 2. - I'm not suggesting we should commit credentials, but that standard parameters should be configurable in a committed file. Moving a step beyond using a Is this likely to get on the roadmap in the next couple of months given you've discussed this several times now? If so - I'll leave it with you, otherwise I'd be interested to take it on as a contribution. |
All yours! We've done everything |
Describe the feature
This may have been suggested already but I couldn't find a duplicate issue from a quick search.
Configuring the
profiles.yml
is non-beginner friendly, and creating instructions on how to do so is complicated especially due to the differences between Mac and Windows environments. Introducing a dbt command which would add a profile toprofiles.yml
(and create the file if needed) using the name from thedbt_project.yml
would be extremely useful. In addition, it is typical that only the schema, username and password are unique between individualprofiles.yml
s, so a default set of values specified in e.g.dbt_project.yml
could reduce the number of options required to be entered.Describe alternatives you've considered
Creating my own script to do this.
Who will this benefit?
Anyone who introduces dbt to new users frequently and struggles to write a simple and comprehensive set of instructions for configuring a
profiles.yml
.Are you interested in contributing this feature?
With some guidance, sure.
The text was updated successfully, but these errors were encountered: