Created
March 18, 2014 23:33
-
-
Save rch850/9632250 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var AWS = require("aws-sdk"); | |
AWS.config.loadFromPath("./config.json"); | |
var kinesis = new AWS.Kinesis(); | |
var params = { | |
StreamName: "rch850-stream", | |
PartitionKey: i + "", | |
Data: new Buffer("oisiiryokucha" + i).toString("base64"), | |
}; | |
kinesis.putRecord(params, function(err, data) { | |
if (err) console.log(err, err.stack); | |
else console.log(data); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment