Amazon IoT Core to Amazon SNS to Amazon SQS

AWS IoT → Amazon SNS → Amazon SQS

Create an IoT rule with an SNS action that delivers messages to an SQS queue.

This pattern contains a sample AWS SAM stack to create an IoT rule with an SNS action, an SNS topic and an SQS standard queue subscribed to the SNS topic.
When a message is published to the IoT topic defined in the IoT rule, this message will be published to the SNS topic and then the message will be delivered to the SQS queue subscribed to the SNS topic.

< 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/iot-sns-sqs-sam

Deploy

sam deploy --guided --capabilities CAPABILITY_NAMED_IAM


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Makendran G

Makendran G

Cloud Support Engineer @ AWS

Follow on LinkedIn