i am working with dynamodb to insert and retrieve records from dynamo. please note that when i insert the record to dynamo db it is working fine but when i try to list any item or retrieve any item from dynamodb it return no result found
for retrieving of record
created a iam role which has trust relationship with api gateway. and has managed policies : AmazonAPIGatewayInvokeFullAccess , AmazonDynamoDBFullAccess , APIGatewayAWSProxyExecPolicy , AmazonAPIGatewayAdministrator.
created a table named, emp which has the field ID and name.
created an api gateway named emp, which has resource /employee. and has method post and get. post for insert and get for display record.
then in URL Query String Parameters added id in method request.
then also in integration request > URL Query String Parameters added > ID and method.request.querystring.id.
in integration request > body mapping template added application/json and then the json code
{ "TableName": "emp", "KeyConditionExpression": "ID = :v1", "ExpressionAttributeValues": { ":v1": { "S": "$input.params('ID')" } } } then when i tested it it returns no result I cannot figure out why please help.
