-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
How to set-up Redshift Connection on dBeaver CE when using Configuration file on a Mac #32349
Comments
Any update on this? |
Hello @adbdkb It looks like a functionality of our PRO versions. |
Ok. So, just using AWS creds part is available only in PRO version from MAC? One of my colleagues was able to connect using CE on a Mac. Only difference is - she was able to connect using DB id - she had Redshift DB id and password directly, not having to use the creds So, I am hoping even the AWS creds can be available in CE version |
You can try then to use the user and password fields in the Database Native authentication tab in your connection in CE. |
I will try the above. One other question. The connection works from Windows dBeaver CE when below properties are added - But the plugin_name defined in Windows is Do you know, what Thank you |
Sorry, I do not know. Google didn't return anything helpful. |
I really hope there is a way to connect to Redshift using configuration file from my Mac machine - as that is my main machine I need guidance regarding which Credentials Provider should be used from Mac ( in place of AdfsCredentialsProvider on Windows ) and what properties are mandatory for that provider |
Description
I am trying to set-up a Redshift connection using dBeaver CE. I am trying to use the Configuration file option as described in the linked AWS Doc Using a Configuration Profile
You can supply the IAM credentials options and GetClusterCredentials options as settings in named profiles in your AWS configuration file. To provide the profile name, use the Profile JDBC option. The configuration is stored in a file named config or a file named credentials in a folder named .aws in your home directory.
I have not been able to determine how to supply the GetClusterCredentials options as settings in the named profile that will allow me to connect to Redshift. I also looked at this Configuration and credential file settings doc, but not sure which of those are GetClusterCredentials options
I tried various combinations here as well - but no success https://docs.aws.amazon.com/redshift/latest/mgmt/generating-iam-credentials-configure-jdbc-odbc.html
How should I supply the options so that I can use dBeaver to connect to Redshift to execute my SQLs instead of having to login to console all the time?
I was successfully able to run the below command on commandline and get the expected result
aws redshift get-cluster-credentials --cluster-identifier --db-user --db-name --duration-seconds 3600 --profile
What options do I need to provide on the url line to make it work? This is one of the examples from that document jdbc:redshift:iam://examplecluster:us-west-2/dev?Profile=user2
Thank you
DBeaver Version
Community Edition 24.0.4
Operating System
macOS Sonoma 14.4.1
Database and driver
RedShift / redshift-jdbc42-2.1.0.26.jar
Steps to reproduce
Set-up the connection using the Redshift driver from dBeaver. Tried providing different options, but did not find a doc that would list the ones to provide for a successful connection
Additional context
I was able to run the on command line as well as I can login to console and access Redshift there. So, the id used is set-up for access. ( I do not know what roles or other information is set to enable the id to access the redshift service
The text was updated successfully, but these errors were encountered: