Skip to content

Sparta application that provisions a Kinesis Firehose and Lambda Transformation function

Notifications You must be signed in to change notification settings

mweagle/SpartaXForm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpartaXForm

Sparta-based application that provisions a Kinesis Firehose that includes an AWS Lambda Transformer function.

The transformation is specified by a go text/template value that supports the default Kinesis Firehose test data format:

{
  "ticker_symbol": "QXZ",
  "sector": "HEALTHCARE",
  "change": -0.05,
  "price": 84.51
}

Transformation:

{
    "region" : "{{ .Record.KinesisEventHeader.Region  }}",
    "key" : {{ .Record.Data.JMESPath "sector"}}
}

See the documentation for more information.

Instructions

  1. Install Go
  2. go get github.com/mweagle/SpartaXForm
  3. cd ./SpartaXForm
  4. go run main.go provision --s3Bucket YOUR_S3_BUCKET
  5. Visit the AWS Kinesis Firehose Console and test your function!

About

Sparta application that provisions a Kinesis Firehose and Lambda Transformation function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages