Skip to content

Instantly share code, notes, and snippets.

Avatar

Shahzad Masud shahzadmasud

View GitHub Profile
@shahzadmasud
shahzadmasud / lambda_cloudsearch.js
Created Jan 7, 2016 — forked from fzakaria/lambda_cloudsearch.js
Send CloudTrail events to CloudSearch with AWS Lambda
View lambda_cloudsearch.js
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'
});