githubEdit

Enabling Lambda Function Access to RDS Database

If your Lambda function is unable to connect to an RDS database even with correct credentials, you likely need to configure the security group settings to allow inbound access from the Lambda function. How to Enable Access Identify the security group associated with your Lambda function Navigate to your RDS database's security group settings Add a new inbound rule: Type: All TCP Source: Select the security group ID of your Lambda function Even if your connection credentials (host, user, password) are correct, the Lambda function still needs proper network access to connect to the database. This is controlled through security group settings. Verifying the Connection After adding the security group rule, your Lambda function should be able to establish connections to the database. You can verify this by checking the Lambda function logs in CloudWatch to ensure there are no connection errors.

Last updated

Was this helpful?