私はjavascriptとnode.jsが新しく、AWS Dynamodbの既存のテーブルに新しいアイテムを配置する構文を理解できるかどうか疑問に思っていましたそのnode.js SDK。ここに私がこれまで持っているものがあります。私がやろうとしていることの例がありますか?誰かが正しい方向に私を指すことができれば、それは非常に高く評価されるだろう。私はあなたの "ID" は数値であることを期待Node.jsのAWS SDKを使用して項目をDynamoDBテーブルに配置
var AWS = require('aws-sdk');
AWS.config.loadFromPath('./config.json');
AWS.config.update({region: 'us-east-1'});
var dynamodb = new AWS.DynamoDB();
var item = {
// I need to put the an item with a the primary key of "id", and an attribute called "item"
// I'm new to js and node.js, so if somebody could help me understand the documentation
// http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/frames.html#!http%3A//docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB_20120810.html
}
dynamodb.putItem({TableName: 'log_dev', Item: item}, function(err, data){
if (err) {
console.log(err); // an error occurred
} else {
console.log(data); // successful response
}
});
[DynamoDBの-マーシャラー](https://github.com/CascadeEnergy/dynamoDb-marshaler)フォーマットの痛みを和らげるのに役立ちます – tsuz