Skip to content

Instantly share code, notes, and snippets.

View LamourBt's full-sized avatar

Lamour LamourBt

  • NY
View GitHub Profile
@LamourBt
LamourBt / lambda-dynamo
Created February 12, 2016 19:51 — forked from markusklems/lambda-dynamo
Short aws lambda sample program that puts an item into dynamodb
// create an IAM Lambda role with access to dynamodb
// Launch Lambda in the same region as your dynamodb region
// (here: us-east-1)
// dynamodb table with hash key = user and range key = datetime
console.log('Loading event');
var AWS = require('aws-sdk');
var dynamodb = new AWS.DynamoDB({apiVersion: '2012-08-10'});
exports.handler = function(event, context) {