Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/s12v/aws-alb-firehose

Application load balancer (ALB) to Kinesis Firehose lambda
https://github.com/s12v/aws-alb-firehose

aws-alb aws-firehose aws-lambda aws-s3 aws-sam

Last synced: 2 months ago
JSON representation

Application load balancer (ALB) to Kinesis Firehose lambda

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.com/s12v/aws-alb-firehose.svg?branch=master)](https://travis-ci.com/s12v/aws-alb-firehose)
[![codecov](https://codecov.io/gh/s12v/aws-alb-firehose/branch/master/graph/badge.svg)](https://codecov.io/gh/s12v/aws-alb-firehose)

# Application load balancer (ALB) to Kinesis Firehose lambda

Serverless function to stream access logs of Application ELB from S3 to Amazon Kinesis Firehose.

This SAM template creates the Lambda function & associated policy + IAM role, and new S3 bucket
with enabled events notifications to this Lambda function.

Send your ALB access logs to this newly created S3 Bucket. To enable access logging for ALB:
http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-access-logs.html#enable-access-logging

Built using AWS Serverless Application Model

Configuration:
* `S3ALBLogsBucketName` - the name of the S3 bucket
* `DeliveryStreamName` - the name of the Firehose delivery stream

Useful commands:

* Generate a test event: `sam local generate-event s3 put --bucket foo --key bar > event.json`
* Test locally: `make samtest`
* SAM validate: `make samvalidate`
* SAM package: `make sampackage bucket=sambucket-alb`
* SAM deploy: `make samdeploy stack_name=alb-firehose-lambda delivery_stream_name=test1 bucket=sambucket-alb`