When performing body = await dynamo.query(params); from a lambda function, i am getting response as :
“statusCode”: “400”,
“body”: “User: arn:aws:sts::891377999999:assumed-role/microserviceNodejsrole/microserviceNodejs1 is not authorized to perform: dynamodb:Query on resource: arn:aws:dynamodb:us-east-1:891377999999:table/quizmaster because no identity-based policy allows the dynamodb:Query action”,
“headers”: {
“Content-Type”: “application/json”,
“Access-Control-Allow-Origin”: “localhost”
}
}
user25490381 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.