1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
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.
Contenido relevante
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 4 meses
- OFICIAL DE AWSActualizada hace 3 meses
- OFICIAL DE AWSActualizada hace 3 años
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.