Amazon web services Dynamo DB AWS cli获取错误 C:\Users\abhij\.aws\model>aws dynamodb put item——表名weatherstation\u data——item'{“station\u id”:{“S”:“000001”},“dateandtime”:{“S”:“2015/12/25 00:00”},“temperature”:{“N”:“0”}——profile loadmin 用法:aws[选项][…][参数] 要查看帮助文本,您可以运行: aws帮助 aws帮助 aws帮助 未知选项:{S:,2015/12/25 00:00},温度:,{N,:,0}',:
您需要删除或转义命令JSON部分中的所有空白。这是一个常见的问题,这就是为什么本文中的大多数示例显示使用JSON文件,如下所示:Amazon web services Dynamo DB AWS cli获取错误 C:\Users\abhij\.aws\model>aws dynamodb put item——表名weatherstation\u data——item'{“station\u id”:{“S”:“000001”},“dateandtime”:{“S”:“2015/12/25 00:00”},“temperature”:{“N”:“0”}——profile loadmin 用法:aws[选项][…][参数] 要查看帮助文本,您可以运行: aws帮助 aws帮助 aws帮助 未知选项:{S:,2015/12/25 00:00},温度:,{N,:,0}',:,amazon-web-services,cmd,amazon-dynamodb,Amazon Web Services,Cmd,Amazon Dynamodb,您需要删除或转义命令JSON部分中的所有空白。这是一个常见的问题,这就是为什么本文中的大多数示例显示使用JSON文件,如下所示: C:\Users\abhij\.aws\model>aws dynamodb put-item --table-name weatherstation_data --item '{"station_id":{"S":"000001"},"dateandtime" : {"S": "2015/12/25 00:00"},"temperature": {"N" :
C:\Users\abhij\.aws\model>aws dynamodb put-item --table-name weatherstation_data --item '{"station_id":{"S":"000001"},"dateandtime" : {"S": "2015/12/25 00:00"},"temperature": {"N" : "0"}}' --profile loadmin
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
Unknown options: {S:, 2015/12/25 00:00},temperature:, {N, :, 0}}', :
不管怎样,给出问题的windows CMD在linux中运行时都会返回输出 aws dynamodb put项--表名weatherstation_数据--项{“station_id”:{“S”:“000001”},“dateandtime”:{“S”:“2015/12/25 00:00”},“温度”:{“N”:“0”}}--profile loadmin
aws dynamodb put-item --table-name weatherstation_data --item file://item.json --profile loadmin