DynamoDb-GUI-Client icon indicating copy to clipboard operation
DynamoDb-GUI-Client copied to clipboard

No data saved at all on DynamoDB local.

Open manodupont opened this issue 5 years ago • 5 comments

Is it normal to not see any Table from the command line aws tool

test@testmac test (master) $ aws dynamodb list-tables --endpoint http://localhost:8000
{
    "TableNames": []
}

Even if I created thousands of rows on DynamoDBGui Client ?!?!?

Am i missing something ?!! Whats the goal of that tool ?!

manodupont avatar Nov 08 '19 16:11 manodupont

Heres what I have in my DynamoDBGui

Screenshot 2019-11-08 at 17 04 31

I should have one table. But i got none using the officiel aws client.
Yes i only have on server running at localhost:8000.

manodupont avatar Nov 08 '19 16:11 manodupont

Local DynamoDB has separate tables if you select different region or apiKey.

DynamoDB does not allow filling in those fields when you use Local tab.

I have mirror situation - no matter what region I set up in [dafault] section of ~/.aws/credentials i still have no tables visible in DynamoDBgui, while aws CLI shows me what I want and what my webapps see.

Conclusion would be that DynamoDBgui has hard-coded region or creds that are different than ones I'm using, while you guys use the region or creds same as DynamoDB gui but your ~/.aws/credentials has none or different settings in [default] section.

skybleu avatar Nov 28 '19 17:11 skybleu

Has anyone else been able to solve this? My tables created through the cli end up in us-east-1 and do not show up in the GUI, but I do not see the table I created through the GUI in the cli.

Heanthor avatar Feb 03 '20 16:02 Heanthor

^ fixed above, the solution was to add the -sharedDb option when starting Dynamo local. This removes the segmentation by environment/access key.

Heanthor avatar Feb 03 '20 21:02 Heanthor

Had the same issue and did what @Heanthor suggested, added -sharedDb flag. However, docker would not run when passing that flag unless I also supplied the -jar argument. Full command that worked for me to start Docker local and connect with GUI:

docker run -d -p 8000:8000 amazon/dynamodb-local -jar DynamoDBLocal.jar -sharedDb

eazytracer avatar Apr 25 '20 17:04 eazytracer