Im trying to run dynamoDB locally in Ubuntu. I have done everything as here: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html If I want to check if my database works locally:
aws dynamodb list-tables --endpoint-url http://localhost:8000
Im getting:
alexa@alexa-VirtualBox:~/Desktop/DynamoDB$ aws dynamodb list-tables --endpoint-url http://localhost:8000
Unable to locate credentials. You can configure credentials by running "aws configure".
Why? I dont want to use AWS. I thought I can be able to test locally dynamodb without AWS account. Is it possible?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With