【发布时间】:2020-01-18 02:01:31
【问题描述】:
我正在尝试使用 CLI 在 DynamoDB 中创建表。
我正在使用以下命令:
aws dynamodb create-table \ --table-name my_table \--attribute-definitions 'AttributeName=Username, AttributeType=S' 'AttributeName=Timestamp, AttributeType=S' \--key-schema 'AttributeName=Username, KeyType=HASH' 'AttributeName=Timestamp, KeyType=RANGE' \--provisioned-throughput 'ReadCapacityUnits=5, WriteCapacityUnits=5' \--stream-specification StreamEnabled=true,StreamViewType=NEW_AND_OLD_IMAGES \--region us-east-1
在上面运行时,我收到以下错误:
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: the following arguments are required: --attribute-definitions, --key-schema
我是 AWS 新手,在我的命令中我声明了属性和键模式,错误是什么?
【问题讨论】:
-
如果您复制与docs.amazonaws.cn/en_us/amazondynamodb/latest/developerguide/…中相同的格式会很棒。
标签: cmd amazon-dynamodb command-line-interface aws-cli dynamodb-queries