我已经使用以下命令设置了dynamodb docker镜像:
$ docker run -p 8000:8000 -v /Users/me/test/:/data/ amazon/dynamodb-local -jar DynamoDBLocal.jar --sharedDb --dbPath /data我可以创建一个表:
$ aws dynamodb create-table --table-name aaa --attribute-definitions AttributeName=id,AttributeType=S --key-schema AttributeName=id,KeyType=HASH --billing-mode PAY_PER_REQUEST --endpoint-url http://localhost:8000我可以使用aws cli列出表格:
aws dynamodb list-tables --endpoint-url http://localhost:8000但是当我使用localhost:8000/ listTables时,我得到一个空列表。在shell上显示表的正确方式是什么?
发布于 2020-04-03 07:59:10
原来我是从shell中复制listTables代码,却忘了从函数中删除ExclusiveStartTableName: 'table_name',值
https://stackoverflow.com/questions/60987653
复制相似问题