- download the repository https://github.com/magJ/iam-jdbc-driver
- build with
bash gradlew build
or use Intellij to build it
- open database tool window
- add new or edit existing data source
- under Drivers section, duplicate the
PostgreSQL
driver, name itPostgreSQL IAM
- in the duplicated driver, add new driver files and navigate to the build folder created in previous step and choose
iam-jdbc-driver-0.1.6-SNAPSHOT-all.jar
- under classes choose
io.magj.iamjdbcdriver.PostgreSqlIamAuthJdbcDriverWrapper
- add new URL template -
jdbc:iampostgresql://[{host::localhost}[:{port::5432}]][/{database:database}]/
- apply changes
- go back go your data source and change driver from
PostgreSQL
toPostgreSQL IAM
- under connection settings change URL from
jdbc:postgresql
tojdbc:iampostgresql
and append query string add the end with your credentials viaawsProfile={profile}
orawsAccessKeyId={access_key}
andawsSecretAccessKey={secret}
; however for me personallyawsAccessKeyId
andawsSecretAccessKey
did not for me