Skip to content
This repository was archived by the owner on Jan 12, 2023. It is now read-only.

Files

Latest commit

1098512 · Dec 25, 2017

History

History

aws-golang-kinesis

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 17, 2017
Sep 17, 2017
Sep 17, 2017
Sep 17, 2017
Sep 10, 2017
Sep 17, 2017
Sep 17, 2017
Sep 17, 2017
Sep 17, 2017
Dec 25, 2017
Sep 17, 2017
Sep 17, 2017
Sep 17, 2017
Sep 17, 2017

README.md

Serverless AWS Kinesis Stream

Serverless AWS APIGateway events example using:

Inspired by https://github.com/pmuens/serverless-kinesis-streams

Installation

Setup and deploy a new project called your-app:

cd $GOPATH/src/your-path/
serverless install -u https://github.com/yunspace/serverless-golang/tree/master/examples/aws-golang-kinesis -n your-app
cd your-app
make DOTENV=.env.example dotenv
  • create a new stream called data-receiver in AWS console
  • fill in and correct any of the variables in .env. Especially AWS_KINESIS_ARN
  • replace WORKDIR in .env with /go/src/your-path/your-app
make test build deploy

Usage

Publish a message

make publish

Observe the logs to see data-receiver stream triggering data-logger

make logger

Cleanup

make remove