Stuck while establishing connection lambda with RDS proxy in Nodejs with same VPC

Viewed 139

I have created three security groups in the same VPC

  1. For lambda-SG gave an inbound rule for RDS-SG, RDS-Proxy, RDS-Lamda with port 5432
  2. For RDS-SG gave 3 rules same above,
  3. For RDS-Proxy also gave the same rules

Lambda Function throw this Exception

when I went to the cloud watch of RDS-Proxy I got an Exception that is given blow.

Credentials couldn't be retrieved. The IAM role provided with the ARN "arn:aws:iam::--------:role/service-role/abc" couldn't be assumed. Make sure that this IAM role is set up correctly for this use.

I also mentioned the role policy for secret, rds,kms. I can not solve this error is there anyONe who can help me out that'll be much appreciated

0 Answers
Related