AWS Lambda can't connect to RDS instance, but I can locally?

前端 未结 3 1992
南旧
南旧 2020-12-15 05:05

I am trying to connect to my RDS instance from a lambda. I wrote the lambda locally and tested locally, and everything worked peachy. I deploy to lambda, and suddenly it doe

3条回答
  •  遥遥无期
    2020-12-15 05:49

    Here's the answer to this with no world wide access.

    Allow AWS Lambda to access RDS Database

    Repeating Mark's answer:

    1. Add vpc access to the lambda function
    2. Create a new security group for the lambda
    3. Add the RDS security group to the lambda's SG.

提交回复
热议问题