Reputation: 3931
I'm attempting to trigger an IoT event via Alexa. I've created an Alexa skill which triggers a Lambda written in Go, which publishes an event to SNS. However, I can't see of a way to get an IoT device to listen to an SNS event.
Similarly, there doesn't seem to be a Go library for IoT, so I can't get the Lambda to interact directly with the IoT MQTT protocol as a client either.
I just wondered if I'd need to re-write my Lambda as a JS Lambda for the purposes of interacting with the IoT core, or if there was a better way to trigger an IoT event from a Lambda?
Upvotes: 1
Views: 1220
Reputation: 200411
You should be able to publish to an IoT topic from within your Lambda function via the IoTDataPlane.Publish method in the AWS SDK for Go.
Upvotes: 1