aws-samples / aws-appsync-iot-core-realtime-dashboard

This sample application demonstrates a React based web dashboard receiving real-time updates from IoT sensors. The solution is built with AWS AppSync, AWS Amplify, Amazon Location Service, and AWS IoT Core technologies.
MIT No Attribution
112 stars 31 forks source link

node create-sensors.js not working #18

Closed royzhao7 closed 1 year ago

royzhao7 commented 1 year ago

show Error creating sensors Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1

dave-moser commented 1 year ago

Thanks for pointing this out @royzhao7

Question - how do you have the AWS CLI configured for credentials to your account? Which of the options listed in this doc?

https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-credentials-node.html

dave-moser commented 1 year ago

I have updated the app dependencies to the latest version of the aws-sdk (3.0). Can you try to reinstall and confirm?

Thanks.