Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

jkahn117/flume-aws-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flume-aws-lambda

Flume sink for AWS Lambda

Build and Install

$ mvn package shade:shade

$ cp target/flume-aws-lambda-{version}.jar FLUME_HOME_DIR/plugins.d/flume-aws-lambda/lib

Configuration

Configure the Sink as follows:

a1.sinks.k1.type = com.jkahn.flume.sink.aws.lambda.LambdaSink
a1.sinks.k1.channel = c1
a1.sinks.k1.region = us-east-1
a1.sinks.k1.functionName = myFunctionName
a1.sinks.k1.accessKey = ...
a1.sinks.k1.secretKey = ...

Options

Name Description Default Optional
region Region of the Lambda function us-east-1 N
functionName Name of the Lambda function that will process messages null N
accessKey Access key with permission to invoke Lambda function null Y
secretKey Secret key associated with access key null Y

AWS Credentials

This sink will follow the credential chains as defined in DefaultAWSCredentialsProviderChain:

  • Environment Variables
  • Java System Properties
  • Credential profiles file at the default location utilized by AWS SDKs and CLI
  • Credentials delivered via the Amazon EC2 Container Service if configured and allowed
  • Instance profile credentials delivered through Amazon EC2 metadata service

References