Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/s12v/aws-alb-firehose
- Owner: s12v
- Created: 2018-09-18T20:34:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-07T21:59:40.000Z (about 6 years ago)
- Last Synced: 2024-06-19T03:01:39.117Z (6 months ago)
- Topics: aws-alb, aws-firehose, aws-lambda, aws-s3, aws-sam
- Language: Go
- Homepage: https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:328305143014:applications~alb-logs-firehose-publisher
- Size: 30.3 KB
- Stars: 10
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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-loggingBuilt using AWS Serverless Application Model
Configuration:
* `S3ALBLogsBucketName` - the name of the S3 bucket
* `DeliveryStreamName` - the name of the Firehose delivery streamUseful 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`