Invalid type for AWS DynamoDB put-item via CLI (unicode v. dict)

前端 未结 2 1079
既然无缘
既然无缘 2021-02-07 01:26

I would like to add an item to my DynamoDB table via command line, but I\'ve run into a type error.

The data that I\'m trying to add is very simple:

{
           


        
2条回答
  •  醉酒成梦
    2021-02-07 02:14

    you need to add the type information (I assume String here)

    aws dynamodb put-item --table-name my_table --item '{ "id": {"S": "1" } }'
    

提交回复
热议问题