AWS lambda function stops working after timed out error

后端 未结 6 1507
生来不讨喜
生来不讨喜 2021-02-05 00:41

I have a simple lambda function that asynchronously makes an API calls and then returns data. 99% of the time this works great. When ever the API takes longer then the lambda co

6条回答
  •  春和景丽
    2021-02-05 01:09

    I think the problem is because of ip address we mention it in the AWS RDS inbound/ outbound.

    If you are testing for now and your node.js is working on local ide and not on AWS, then you have to do following:

    1. Go to AWS RDS.

    2. Click on DB instance.

    3. Click the name of that DB instance.
    4. Go to "Connect" section below, where you can find Security group roles.
    5. The type of the security groups will be inbound, outbound.
    6. Click on both one by one. It will open a new window.
    7. Again there will be two tabs for inbound and outbound.
    8. Click on both one after the other.
    9. Click "Edit".
    10. Select "Anywhere" instead of "Custom". P.S. Repeat for both inbound/outbound.

    All Set.

提交回复
热议问题