aws / aws-iot-device-sdk-js

SDK for connecting to AWS IoT from a device using JavaScript/Node.js
Apache License 2.0
964 stars 384 forks source link

How to use the mqtt client in an ecs fargate instance #350

Closed joaspacce closed 3 years ago

joaspacce commented 3 years ago

Confirm by changing [ ] to [x] below:

Platform/OS/Hardware/Device What are you running the sdk on? Node 10

Describe the question I have a code connecting to the mqtt client in my development environment, but in ecs is throwing an error of credentials not provided. It should not use the task role credentials? Or I'm missing something?

This is how I init the client.

const mqttClient = awsIotDevice.device({
    clientId: mqttClientId,
    host: mqttEndpoint,
    protocol: 'wss'
  });
jmklix commented 3 years ago

I am going to set this to closing soon, because you have asked the same question on the v2 repo. If you prefer to use v1 just comment here before it is closed.

github-actions[bot] commented 3 years ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.