Connecting to Postgres Amazon RDS using IAM authentication

0

Hi all, I am trying to set us IAM authentication to connect to my Postgres RDS 14.2 instance. I am following https://aws.amazon.com/premiumsupport/knowledge-center/rds-postgresql-connect-using-iam/ to set things up. I can connect to the instance using the authentication token without performing any of the IAM tasks which are mentioned in the document. The following are the steps I followed.

  1. Create a Postgres 14.2 instance

  2. Enable IAM authentication on the instance

  3. Login to my instance and create a DB user with login and grant rds_iam to the user.

  4. Generate the authentication token for the user.

  5. Login to the instance with the generated authentication token.

    I was able to login to the instance without any issue. If you notice the above steps I did not create an IAM user nor have I created or attached any policy as mentioned in the documentation. Am I missing something? I don't this that is how it is expected to work.

Thanks, Kris

1개 답변
0

I think I have found the issue. I have been generating the token as root user rather than the IAM user. I think thats why I am able to login to the instance as the user without doing anyting related to the IAM config.

kris
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠