【发布时间】:2019-12-23 14:15:26
【问题描述】:
我刚刚在 CLI 中学习 AWS DynamoDB。我专门使用命令执行put-item
aws dynamodb put-item --table-name new --item file://item.json。我已经成功配置了 IAM 凭证,我还可以使用
aws dynamodb list-tables:
{
"TableNames": [
"new",
"test"
]
}
错误:
我就是这个错误:An error occurred (ValidationException) when calling the PutItem operation: One or more parameter values were invalid: Missing the key newid in the item
谁能指导我如何摆脱这个并修复这个错误?
【问题讨论】:
-
你的分区键是什么?
-
@krishna_mee2004 test_id(字符串)
-
@krishna_mee2004 尤里卡。我明白了,谢谢你的提示
-
如果您需要,可以在 CLI 和大多数 SDK 的 DynamoDB 文档的入门部分中提供相关示例。
标签: amazon-web-services aws-lambda amazon-dynamodb put dynamo-local