Home > Back-end >  AWS dynamodb query from php
AWS dynamodb query from php

Time:11-01

I have a react application and i'm trying to use aws dynamodb, i installed the php sdk but i don't know how to query my db.

I copied the tutorial here and i changed the endpoint to: "https://dynamodb.us-west-2.amazonaws.com".

I get this error: {"__type":"com.amazon.coral.service#UnrecognizedClientException","message":"The security token included in the request is invalid."}. I guess i have to add a security token somewhere, i don't know where and neither where to find it.

Any suggestion?

CodePudding user response:

Based on your error, i think you need to check your aws secret key and access key. You can try to install aws cli then create user access programmatically from aws console from this link

Then you can try your source code after that.

  • Related