Comments for Test the APIs


hi all, sharing a solution i came across. i faced this problem when running npx aws-api-gateway-cli-test.
{ status: 500, statusText: 'Internal Server Error', data: { status: false } }
when i console log the error, i get this error.
User: arn:aws:... is not authorized to perform: dynamodb:PutItem on resource: arn:aws:dynamodb:...
I confirmed my serverless.yml indentations are correct and all my regions are correctly set. I see that my IAM user is also given the correct authorisation.
What i did to solve it is i added the AdministratorAccess policy to the IAM role created by lambda and i managed to get the 200 status.

hope this helps.


That certainly works. But I might still try and get the original way to work!