Can't connect to an RDS Instance from Lambda (different account tough)

0

Hello,

I am trying to connect to an RDS Instance for developpement purpose from a Lambda function used as an Authorizer. But it seems to timeout each time.

I have another database which works fine

Some detailed informations :

About the RDS instance Network Configuration :

  • RDS Instance is wide open. I can connect from my computer with Pgadmin.
  • Inbound rules of the group security attached to the RDS are correct :
    *PGS TCP 5432 - 0.0.0.0/0
    *PGS TCP 5432 - ::/0
  • DNS are OK
  • Using default aws VPC.

About the lambda function :

  • There is already a database settings configured in the code and it works fine.
  • Outbound rules of the scurity group attached to the lambda are OK
    ALL 0.0.0.0/0, ::/0
  • Public accessibility : Yes
  • Code is OK since i can connect to an another database in my account

One difference tough : the rds instance i am trying to connect is not on the same aws account that i am using but in the same region (west3c). I don't think this is a problem.

I am out of idea.

Edited by: MrJibus on Apr 10, 2020 7:06 AM

1개 답변
0

Oh yeah ... my vpc doesn't access to the internet ...

Removing the vpc from the lambda resolves the issue.

MrJibus
답변함 4년 전

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

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

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

관련 콘텐츠