Aws-cli: AWS cliを使用してローカルセカンダリインデックスを持つDynamoDBテーブルを作成するのを手伝ってくれる人はいますか?

作成日 2016年06月16日  ·  3コメント  ·  ソース: aws/aws-cli

guidance service-api

最も参考になるコメント

aws dynamodb create-table --table-name XYZ --attribute-definitions AttributeName = Id、AttributeType = N AttributeName = Name、AttributeType = S --key-schema AttributeName = Id、KeyType = HASH AttributeName = Name、KeyType = RANGE- -プロビジョニングされたスループットReadCapacityUnits = 5、WriteCapacityUnits = 5 --local-secondary-indexes'IndexName = idx1、KeySchema = [{AttributeName = Id、KeyType = HASH}、{AttributeName = Name、KeyType = RANGE}]、Projection = { ProjectionType = ALL} '

全てのコメント3件

LSIの場合、 create-table呼び出しで--local-secondary-indexes 'IndexName=string,KeySchema=[{AttributeName=string,KeyType=string},{AttributeName=string,KeyType=string}],Projection={ProjectionType=string,NonKeyAttributes=[string,string]}'します。

それでも問題が解決しない場合は、ギッタールームでチャットしてください。 ギッターを支持してクロージング。

こんにちはジェームズ、

aws dynamodb create-table --table-name XYZ --attribute-definitions AttributeName = Id、AttributeType = N AttributeName = Name、AttributeType = S AttributeName = Gender、AttributeType = S --key-schema AttributeName = Id、KeyType = HASH AttributeName = Name、KeyType = RANGE --provisioned-throughput ReadCapacityUnits = 5、WriteCapacityUnits = 5 --local-secondary-indexes'IndexName = string、KeySchema = [{AttributeName = Gender、KeyType = RANGE}、{AttributName = Id、KeyType = HASH}]、Projection = {ProjectionType = ALL} '

上記のコードを使用してテーブルを作成しました。 しかし、私はエラーが発生しています:

_パラメータの解析エラー '--local-secondary-indexes':予期される: '='、受信される: ''
'入力用:
'IndexName = string、KeySchema = [{AttributeName = Gender、KeyType = RANGE}、{AttributName =
Id、KeyType = HASH}]、Projection = {ProjectionType = ALL} '_

ご協力ありがとうございました

aws dynamodb create-table --table-name XYZ --attribute-definitions AttributeName = Id、AttributeType = N AttributeName = Name、AttributeType = S --key-schema AttributeName = Id、KeyType = HASH AttributeName = Name、KeyType = RANGE- -プロビジョニングされたスループットReadCapacityUnits = 5、WriteCapacityUnits = 5 --local-secondary-indexes'IndexName = idx1、KeySchema = [{AttributeName = Id、KeyType = HASH}、{AttributeName = Name、KeyType = RANGE}]、Projection = { ProjectionType = ALL} '

このページは役に立ちましたか?
0 / 5 - 0 評価