1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
2
You seem to be missing credentials. You haven't mentioned where you are running your application from, if its from your local machine you can set up the credentials using AWS Configure. This will allow your code pick up credentials and interact with DynamoDB, so long as the credentials belong to a user who has DynamoDB access. More on Identity and Access Management here.
If you're using an AWS service to host the code such as Lambda, then ensure you attach an IAM execution role to the service so it has permissions. Here is an example for Lambda but the same goes for EC2 or other services.
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a 3 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 4 mois
Like I am using JavaScript in my local machine can you tell me which is the exactly process for passing credentials?
Run
aws configure
from the CLI. It will set up credentials locally and is the preferred method.https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html
Otherwise you can add the credentials to your DynamoDB Client directly, but it is strongly discouraged to do so.