Skip to content

Instantly share code, notes, and snippets.

View shahzadmasud's full-sized avatar
🎯

Shahzad Masud shahzadmasud

🎯
View GitHub Profile
@shahzadmasud
shahzadmasud / lambda_cloudsearch.js
Created January 7, 2016 09:24 — forked from fzakaria/lambda_cloudsearch.js
Send CloudTrail events to CloudSearch with AWS Lambda
console.log('Loading event');
var CLOUDSEARCH_ENDPOINT = < INSERT HERE >
var async = require('async');
var jpath = require('json-path')
var zlib = require('zlib');
var aws = require('aws-sdk');
var s3 = new aws.S3({
apiVersion: '2006-03-01'
});