AWS Lambda to AWS IoT Core

Lambda function → AWS IoT

AWS Lambda function publishing to AWS IoT Core topic.

This pattern contains a sample AWS SAM stack with an AWS IoT Core thing and a Lambda function.
The Lambda function publishes a message to the IoT topic which you can view in the console.

< 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/lambda-iot-sam

Deploy

sam deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Additional resources

Created by:

Daniele Frasca

Daniele Frasca

I am Daniele Frasca serverless enthusiast. I build and architect serverless applications at scale.