-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat(athena-driver): add session-token and database env vars #6018
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
feat(athena-driver): add session-token and database env vars #6018
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6018 +/- ##
==========================================
+ Coverage 41.33% 41.78% +0.45%
==========================================
Files 151 153 +2
Lines 20014 20163 +149
Branches 5206 5259 +53
==========================================
+ Hits 8272 8425 +153
- Misses 10904 11428 +524
+ Partials 838 310 -528
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hey @paulorsbrito ! Thanks for contributing! We already have |
Hi, @paveltiunov! Thanks for your reply. Yes, the main reason is to avoid using it in sql queries. It's a Athena feature and something we really need in our scenario. But it's nice to hear that we already have an env var for this. I'll change the code to use that. |
|
Instead of this, cant you just push your credentials into AWS default environment variables? The AWS sdk should handle the above case automatically. As an example, the below would enable authentication to work as intended: |
|
That really worked, @darapuk ! Thanks! As far as I could see in the docs, there's no such env var for default database, so I'll keep that specific changes |
|
I couldn't find a way to configure a database different than |
Check List
Description of Changes Made (if issue reference is not provided)
Add env vars config for Athena session token and use
CUBEJS_DB_NAMEfor Athena default database.