- download the repository https://github.com/magJ/iam-jdbc-driver
- build with
bash gradlew buildor use Intellij to build it
- open database tool window
- add new or edit existing data source
- under Drivers section, duplicate the
PostgreSQLdriver, 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
PostgreSQLtoPostgreSQL IAM - under connection settings change URL from
jdbc:postgresqltojdbc:iampostgresqland append query string add the end with your credentials viaawsProfile={profile}orawsAccessKeyId={access_key}andawsSecretAccessKey={secret}; however for me personallyawsAccessKeyIdandawsSecretAccessKeydid not for me