I AM USING VTL TEMPLATE AND PARTIQL TO SELECT THE RECORDS FROM DYNAMODB and testing through POSTMAN.
{
"Statement":"SELECT * from "table" where name = ?",
“Parameters”:[
"S": "$input.path('$.name')"]
}
From postman I am passing in body and using POST method
{
"name":"polly"
}
I have used http post method to get from dynamodb via apigateway. No lambda in between.
I am using http post method to get the names from the dynamodb.
Please chime in if you know how to query from apigateway VTL TO DYNAMODB