I created one item in my dynamodb and then my nodejs lambda function will keep updating access_token value inside this item. Below is the schema
{
"service": {
"S": "perform"
},
"access_token": {
"S": "xxxxxxxxxx"
}
}
Below are the dynamodb parameters that I will send to dynamodb update function
{
"TableName": "Access-Token",
"Key": {
"service": "perform"
},
"UpdateExpression": "set access_token = :token",
"ExpressionAttributeValues": {
":token": "xxxxxxxxxxxx"
},
"ReturnValues": "UPDATED_NEW"
}
But when I run the lambda function i received below error. Need help and guide on this
ValidationException: The provided key element does not match the schema