Skip to content

Instantly share code, notes, and snippets.

@alygueye
alygueye / firehose-to-athena.js
Created July 24, 2017 22:59 — forked from tomodian/firehose-to-athena.js
Firehose to Athena
'use strict';
const aws = require('aws-sdk');
const s3 = new aws.S3({ apiVersion: '2006-03-01' });
exports.handler = (event, context, callback) => {
const key = decodeURIComponent(event.Records[0].s3.object.key);
const meta = key.split('/');
@alygueye
alygueye / cf-keep-alive-template.json
Created June 18, 2017 04:07 — forked from zrzka/cf-keep-alive-template.json
AWS Keep Alive lambda function
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Keep alive functions",
"Resources": {
"LambdaPolicy": {
"Type": "AWS::IAM::ManagedPolicy",
"Properties": {
"PolicyDocument": {