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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ