/awsiotpublish

AWS IoT publish message to a topic

Primary LanguageGoMIT LicenseMIT

AWS IoT Publish

Serverless Golang lambda function which posts a message to a AWS IoT topic.

Prerequisites

Deployment

To build run make.

To deploy to the cloud, configure your profile and region and stuff in serverless.yml, then run sls deploy.

Try it yourself!

  1. Open AWS console and search for 'iot core'.
  2. Select 'test' and create test topic for yourself.
  3. Send POST {url}/{stage}/iot/{topic}/{message} (Use the address you got from the deployment).