-
I am really struggling to publish to AWS Iot from within a lambda using the AWS SDK. There is very little information available online, but from the methods and properties available within the package it appears it should be possible. When I deploy this lambda and run a test, all I get is a time out after 3 seconds (changing the lambda timeout does increase this time, but it still times out), and it appears the final Publish Response log message isn't executed. This leads me to believe that something is going wrong when calling PublishAsync, but I can't figure out what. Is anyone able to offer any insight? I also have an IAM Iot Publish policy attached to the lambda. I should also add, the catch isn't being executed so I don't believe an exception is being thrown.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The below works from within a lambda and have messages being published
|
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
The below works from within a lambda and have messages being published