Amazon Kinesis Poison Pill Pattern

Amazon Kinesis → AWS Lambda

How to handle Lambda consumer failure when reading from a Kinesis Data Stream

How to handle Lambda consumer failure when reading from a Kinesis Data Stream
This pattern demonstrates how to handle a Lambda consumer failure when reading from a Kinesis Data Stream with Terraform.
Without proper handling of failure when working with Kinesis Data Streams, an iterator will stop and the only way for the data to clear the stream is for it to age out beyond the trim horizon.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/terraform-kinesis-poison-pill

Deploy

terraform initterraform planterraform apply


Testing

See the README in the GitHub repo for detailed testing instructions.

Cleanup

terraform destroy
terraform show

Additional resources

Created by:

Naresh Rajaram

Naresh Rajaram

Cloud Infrastructure Architect, AWS

Follow on LinkedIn

Mitesh Purohit

Mitesh Purohit

Sr Solution Architect, AWS

Follow on LinkedIn