DynamoDB locally
Despite the fact you're hitting a local endpoint that doesn't require credentials the aws cli tool you're using to interact with the dynamoDB-local still looks for values for the expected AWS credentials to sign your requests with.
This is what the final point in https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.UsageNotes.html is trying to suggest. If you set dummy values for AWS Access Key ID
, AWS Secret Access Key
and set a default region by running aws configure
as suggested you should be able to successfully run commands against your dynamoDB-local instance.
This page on configuring the AWS CLI gives more details on what's going on behind the scenes here.
You have to save credentials so that aws cli tool can interact with dynamoDB.
You have to save credentials at nano ~/.aws/credentials
[default]
aws_access_key_id = **************
aws_secret_access_key = *******************