Hi
I just completed the How to create a REST API in Java using DynamoDB and Serverless tutorial.
I associated my aws account to serverless client via commandline
serverless config credentials --provider aws --key KEYKEYKEY2001--secret SECRETSECRET100001
All lambda functions are created, dynamoDB table, s3 bucket all created etc. I have fully ported in all code from the github example. The only change is the aws region from US to EU.
However, when I try and POST to create a demo product it fails to save. It connects correctly but fails to write to the DB
curl -vvv -X POST https://xxxxxxxxxxx.execute-api.eu-west-1.amazonaws.com/dev/products -d '{"name": "Product1", "price": 9.99}'
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying 143.x.x.x...
* TCP_NODELAY set
* Connected to xxxxx.execute-api.eu-west-1.amazonaws.com (143.x.x.x) port 443 (#0)
"message": "Error in saving product: