How can I run synchronous dynamodb request in lambda?


Scan is not waiting to return the output but going to next step. How can we run synchronous call from lambda to dynamodb.


If you really need synchronous scan, you can use one of the ways below:

1. Using Promise resource of JavaScript:

2. Using the aws-sdk return objects:

Leave a Reply