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 ?

demandé il y a un an190 vues
1 réponse
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
EXPERT
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions