Unable to connect to RDS through Datagrip with IAM Authentication - what am I missing?

0

I'm trying to connect to a postgresql RDS database using Datagrip and the AWS Toolkit plugin with IAM Authentication. The instructions on the subject are confusing and inconsistent and it's very unclear to me what I'm doing wrong. Here's what I did:

  • enabled IAM Auth on the RDS instance.
  • installed the AWS Toolkit and configured the access keys (I can access most services just fine, including viewing files on S3 through Datagrip. So that part is functional)
  • I created a policy that allows rds-db:connect action and assigned it to my user
  • I used the AWS explorer in Datagrip, selected the DB instance, clicked "connect with IAM auth"
  • when I run "test connection" I get this:

Enter image description here

The details that the toolkit inserts are correct as far as I can tell. I've been googling, and asking, and trying different things. Some places suggest creating a role to connect through an EC2 instance which I completely don't understand (why would I need a complete instance? Why wouldn't I just connect directly?) It's very confusing, incredibly frustrating and I'm stumped. What am I missing?

1 Answer
0

I want to help but let me be honest , I have never tried using Datagrip and RDS Auth. but I know a thing or two about rds-db:connect. Recently investigated in depth and implemented in my account using Lambda and other Services. Don't you need to generate token to access the RDS? I didn't work with Datagrid and AWS Toolkit for such a use case so let me know if thats different from what the article I posted(have you see it before?). Where the token goes in your configuration?

profile pictureAWS
Niko
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions