Is it secure to publish a message to AWS IOT topic without specifying AWS IOT endpoint within AWS? #6414
Unanswered
SalikSayyed
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
From within AWS Lambda,
Earlier with aws sdk v2 we were creating a iot client specifying AWS IOT endpoint and publishing a message to IOT topic.
But now after v3 upgrade, we have to use IotDataPlaneClient, and we are able to publish message to IOT topic from AWS Lambda.
But I have concern since we have not specified iot endpoint, is the communication from AWS Lambda to AWS IOT secure and encrypted?
Thanks.
Earlier in v2 :
`const AWS = require('aws-sdk');
let iot = new AWS.IotData({
endpoint : ''
});
iot.publish(params,callback);`
Now in v3 : as per example given in @aws-sdk/client-iot-data-plane
`import { IoTDataPlaneClient, PublishCommand } from "@aws-sdk/client-iot-data-plane";
const client = new IoTDataPlaneClient({
region: "us-east-1",
});
const response = client.send(new PublishCommand(params));`
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions