AWS IoT Core to AWS Lambda based on IoT rule

AWS IoT Core → AWS Lambda

Deploys a Lambda function, an IoT thing, and the minimal IAM resources required to run the application

This pattern contains a sample AWS CDK stack to create an IoT rule with an AWS Lambda function.
When an IoT event is sent to an IoT topic, a Lambda function is invoked. This pattern configures a Lambda function to poll this event. The function is invoked with a payload containing the contents of the message event.

< 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-lambda-cdk-dotnet

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk delete.

Additional resources

Created by:

Harvey Raju

Harvey Raju

Harvey Raju is a Lead Consultant at Amazon Web Services