Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

Kinesis Poison Pill Pattern

Created with SnapAmazon KinesisAWS 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 Visit the GitHub repo for this pattern.

Download

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

Naresh Rajaram

Presented by Naresh Rajaram

Cloud Infrastructure Architect, AWS

Follow on LinkedIn

Mitesh Purohit

Presented by Mitesh Purohit

Sr Solution Architect, AWS

Follow on LinkedIn