2 Answers
- Newest
- Most votes
- Most comments
0
Hi. What's the error you get?
I'm not familiar with MQTT.js, but I think you need to specify the protocol in the endpoint string, as per the MQTT.js example here: https://aws.amazon.com/blogs/iot/use-aws-iot-core-mqtt-broker-with-standard-mqtt-libraries/
0
Hi,
You should follow the guidance of https://docs.aws.amazon.com/iot/latest/developerguide/accessing-cross-account-resources-using-rules.html
See section Cross-account setup for AWS Lambda
in particular
Best,
Didier
This is to send MQTT messages across accounts through IoT core, but I hope to publish MQTT messages across accounts from Lambda in reverse. Is there any other way? Thank you
Relevant content
- Accepted Answerasked 3 years ago
- asked a year ago
- asked 7 years ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
This code is not working, no error I got in the output, Its just waiting.
https://aws.amazon.com/blogs/iot/use-aws-iot-core-mqtt-broker-with-standard-mqtt-libraries/ This example should be applicable to the device side. Is there any other way to connect to the IoT core of other AWS Accounts through "Lambda"?
Don't know what I missed. Any suggestion will be helpful for me. Thanks you
Is your Lambda in a VPC? And what is the use case that makes you want to do this?