How to hydrate Kinesis DLQs records
-
run
npm ci
in the project root to restore dependencies. -
run
npx sls deploy
to deploy the project tous-east-1
region. This should create a CloudFormation stack calledhydrate-kinesis-dlq
in theus-east-1
region. -
Inspect the CloudFormation stack to find the names of Kinesis stream (logical id
KinesisStream
) and SQS DLQ (logical idKinesisStreamDLQ
). -
To send test to the stream, run
STREAM_NAME=<insert stream name> node send-data-to-stream
in the project root. This script sends a message to the stream every 10 seconds.
The Kinesis function would fail 100% of the time. So all the messages you send would end up in the SQS DLQ.