I have dealing with some trouble serverless framework and DynamoDB.
After my lambda function executed,
the context.succeed(result) would return the result,
but nothing write into the DynamoDB.
Here is the link of demo repo.
I've read this question
And I added the resource to the s-resources-cf.json,
then serverless resources deploy again.
After sending the request, it still do nothing with DynamoDB.
Here's the thing I've done:
Create a table:
postswith primary key in specific regionAttach
AdministratorAccessto myIAMrole(I know it's bad to do that.)Add
{"Effect": "Allow", "Action": ["*"], "Resource":"arn:aws:dynamodb:${region}:*:table/*"}to thes-resources-cf.json
Do there anything I still misunderstand?