Serverless Golang lambda function which posts a message to a AWS IoT topic.
- AWS account
- IoT topic configured
- Go
- Serverless
To build run make
.
To deploy to the cloud, configure your profile and region and stuff in serverless.yml
, then run sls deploy
.
- Open AWS console and search for 'iot core'.
- Select 'test' and create test topic for yourself.
- Send
POST {url}/{stage}/iot/{topic}/{message}
(Use the address you got from the deployment).