Allow AWS Lambda to access RDS Database

giò picture giò · May 4, 2016 · Viewed 47.5k times · Source

I am trying to connect to RDS Database from an AWS Lambda (Java).

Which IP should I enable from the RDS Security group rules?

Answer

Mark B picture Mark B · May 4, 2016

You can't enable this via IP. First you will need to enable VPC access for the Lambda function, during which you will assign it a Security Group. Then, within the Security Group assigned to the RDS instance you will enable access for the Security Group assigned to the Lambda function.