2017-02-13 19 views
-1
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}}', : 

答えて

1

コマンドのJSON部分の空白をすべて削除するかエスケープする必要があります。

aws dynamodb put-item --table-name weatherstation_data --item file://item.json --profile loadmin 
0

ネヴァーマインドCMDが問題を与えてthatsのその窓はLinuxのそれに同じことを実行しました:これは次のようにこれは、aws dynamodb CLI tool docsの例のほとんどが代わりにJSONファイルの使用を示した理由である、共通の問題です出力を返す

aws dynamodb put-item --table-name weatherstation_data - 項目 '{"station_id":{"S": "000001"}、 "dateandtime":{"S": "2015/12/25 00:00 "}、" temperature ":{" N ":" 0 "}} '--profile loadmin

関連する問題