Reputation: 97
I can't successfully connect to RDS from Amazon Lambda in production. For Amazon Lambda I'm using Serverless framework, executing sls offline I can connect with RDS from localhost, but in production Amazon Lambda doesn't.
Both are in same VPC, in same security group, that has all traffic inbound access, and a rule that is pointing to Vpc's CIDR.
I have these permissions attached: AmazonRDSFullAccess, AWSLambdaFullAccess, AmazonVPCFullAccess, AWSLambdaExecute and AWSLambdaVPCAccessExecutionRole.
Upvotes: 9
Views: 6272
Reputation: 29
Try to change "IAM DB Authentication Enabled" to YES on your database and apply changes immediately so you don't wait for maintenance.
That solved my problem.
Upvotes: -1
Reputation: 2929
I had this issue and the following is a summary of the steps I took to resolve:
Good luck.
Upvotes: 18