Skip to content

Instantly share code, notes, and snippets.

View justin-morgan's full-sized avatar

justin-morgan

View GitHub Profile
@justin-morgan
justin-morgan / CloudWatchLogsLambdaKinesisFirehose.py
Created January 12, 2016 18:09 — forked from mlapida/CloudWatchLogsKinesisFirehose-Lambda.py
A short Lambda Function the can be sent CloudWatch Logs (in the case Flow Logs) and send them to Kinesis Firehose for storage in S3.
import boto3
import logging
import json
import gzip
from StringIO import StringIO
logger = logging.getLogger()
logger.setLevel(logging.INFO)
client = boto3.client('firehose')