aws-sns-to-kinesis

command module
v0.0.0-...-872c164 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: BSD-2-Clause Imports: 6 Imported by: 0

README

aws-sns-to-kinesis Report card

This is Serverless Application to forward a message from Amazon SNS (Simple Notification Service) to Amazon Kinesis Data Stream.

Prerequisite

  • Go >= 1.11
  • aws-cli >= 1.14.40
  • automake >= 3.81

Usage

Create a config file named stack.cfg

StackName=your-sns-to-kinesis-stack
CodeS3Bucket=some-s3-bucket
CodeS3Prefix=functions

SnsTopicArn=arn:aws:sns:ap-northeast-1:1234567890:your-topic
KinesisStreamArn=arn:aws:kinesis:ap-northeast-1:1234567890:stream/your-stream

Parameter explanations are following.

  • StackName: Stack name of CloudFormation
  • CodeS3Bucket: S3 bucket name to save Lambda code
  • CodeS3Prefix: S3 prefix to save Lambda code. NOTE: / is appended to tail of the parameter automatically
  • SnsTopicArn: ARN of source SNS topic to receive messages
  • KinesisStreamArn: ARN of destination Kinesis Stream
  • LambdaRoleArn (optional): IAM Role ARN of Lambda function

After editing the config file, run deploy command.

$ make STACK_CONFIG=stack.cfg deploy

Test

After deployment, you can run test.

env STACK_CONFIG=stack.cfg go test

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