aws-golang-kinesis

command
v0.0.0-...-b07ea14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2019 License: MIT Imports: 6 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL