Amazon SNS to Amazon SQS to AWS Lambda to Amazon Data Firehose

SNS FIFO → SQS FIFO → AWS Lambda → Firehose

Save messages from an SNS FIFO topic into an S3 bucket, using SQS FIFO queue, Lambda and Firehose.

The Terraform template in this pattern allows you to connect an SQS FIFO queue to Firehose to process messages sent by an SNS FIFO topic and save the result to an S3 bucket using a Lambda function as a bridge to Firehose.

< 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/fifo-sns-sqs-lambda-firehose-s3

Deploy

terraform initterraform planterraform apply


Testing

See the GitHub repo for testing instructions.

Cleanup

1. Delete the stack: terraform destroy.
2. Confirm the stack has been deleted: terraform show

Created by:

Hicham Terkiba

Hicham Terkiba

AWS Proserve Cloud Infrastructure Architect

Follow on LinkedIn