小编mio*_*rey的帖子

AWS DynamoDB Local 使用 awscli 添加全局二级索引

您好,我尝试执行以下命令,以便将全局二级索引添加到现有表中:

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 \
Run Code Online (Sandbox Code Playgroud)

+ 或 - 10 秒后,我得到以下响应,没有任何明确的错误消息。我使用https://hub.docker.com/r/cnadiminti/dynamodb-local/来模拟我的数据库。

调用 UpdateTable 操作时发生错误 (InternalFailure)(达到最大重试次数:9):由于未知错误、异常或失败,请求处理失败。

amazon-web-services amazon-dynamodb amazon-dynamodb-local

2
推荐指数
1
解决办法
1656
查看次数