We’re working with a community member that is having issues connecting to Redshift using DatabaseConnector. The only difference that we can identify is that they are using IAM roles as part of their authentication. The following connection string works from their SQL Workbench but fails with the following error when using DatabaseConnector.
It should be “jdbc:redshift://{host}:5439/{database_name}”. As far as I know DatabaseConnector is not able to work with IAM roles. You need to make standard Redshift account.
I concur with Konstantin. It seems like the createConnectionDetails parameters are malformed. Take a look below at the standard createConnectionDetails call made by OHDSIonAWS to Redshift. Could you try implementing it with this pattern?
Update: This issue has been resolved. Turns out that we have a utility script that runs at login to generate dynamic passwords. Thanks everyone for your help!
@JamesSWiggins, @Konstantin_Yaroshove
Thank you both for your suggestions. I have tested the following per your suggestions. They ended up with the same error related to password: