Skip to content

Instantly share code, notes, and snippets.

@rch850
Created March 18, 2014 23:33
Show Gist options
  • Save rch850/9632250 to your computer and use it in GitHub Desktop.
Save rch850/9632250 to your computer and use it in GitHub Desktop.
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