Asynchronous message processing with AWS Lambda and IoT Core

Amazon API Gateway → Amazon SQS → AWS Lambda → AWS IoT

API Gateway REST API integration with SQS, Lambda, and IoT

A POST request to API Gateway will create a message onto a SQS queue. Lambda picks up the message uses the topic in the request body to send message to the IOT Data API endpoint

< 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/apigw-sqs-lambda-iot

Deploy

sam buildsam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Abdul Waheed

Abdul Waheed

Solutions Architect @ AWS