DynamoDB .Net SDK query timed out

0

I am using the AWS .Net SDK to access DynamoDB in my alexa lambda function. Frequently, (about an hour every day), I get a query timed out error. This is a query that runs every minute from CloudWatch Events and it fetches the value from a table that has only one row. Most of the time it works fine and returns in milliseconds. However, several times during the day it times out. I have tried increasing and decreasing the timeout period, but it does not help. How do I resolve such errors ? What is causing this ? Will it help if I have my DynamoDB within the same VPC endpoint as the lambda ?

已提問 1 年前檢視次數 190 次
1 個回答
0

Accessing DynamoDB from Lambda is not a problem as long as the IAM role is set up, so no VPC endpoints are required.
VPC endpoints are needed when Lambda is running inside a VPC.
Your Lambda is not running in a VPC, is it?

If Lambda is running in a VPC, it is necessary to check the configuration around the network as it may be incorrect.

profile picture
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南