【发布时间】:2020-08-24 16:53:38
【问题描述】:
您好,我尝试执行以下命令以将全局二级索引添加到现有表:
aws dynamodb update-table \
--region eu-west-1 \
--endpoint-url http://127.0.0.1:8000/ \
--table-name ssib_dev_assetsTable \
--attribute-definitions AttributeName=AssetGroup,AttributeType=S \
--global-secondary-index-updates \
Create="{IndexName=gsi_group,KeySchema=[{AttributeName=AssetGroup,KeyType=HASH}],Projection={ProjectionType=ALL}}" \
--provisioned-throughput ReadCapacityUnits=10,WriteCapacityUnits=10 \
+ 或 - 10 秒后,我得到以下响应,没有任何明确的错误消息。我使用https://hub.docker.com/r/cnadiminti/dynamodb-local/ 来模拟我的数据库。
调用 UpdateTable 时发生错误 (InternalFailure) operation (reached max retries: 9): 请求处理失败 由于未知的错误、异常或失败。
【问题讨论】:
-
去掉
--region eu-west-1选项会有影响吗? -
没有任何变化。
-
DynamoDB Local 实际上正在运行,是吗?
-
是的,没问题
-
仅供参考,文档指出端点 URL 应该是 localhost:8000,所以请测试它以确保它不是那么简单。
标签: amazon-web-services amazon-dynamodb amazon-dynamodb-local