aws iot describe-endpoint You must specify a region

0 votes

I am following this tutorial for connecting Raspberry Pi to AWS IoT using Node.js SDK and I have done all the other steps but I am lost in the authentication and certificate step:

pi@raspberrypi:~ $ aws iot describe-endpoint
You must specify a region. You can also configure your region by running "aws configure".
pi@raspberrypi:~ $ aws configure
AWS Access Key ID [None]: 
AWS Secret Access Key [None]: 
Default region name [None]: 
Default output format [None]: 
pi@raspberrypi:~ $ ls
2016-02-24-204612_1920x1080_scrot.png  Desktop     get-pip.py           node_modules  python_games             sources    WiringPi
aws                                    device.cfg  ibm                  Pictures      python-iot-raspberry-pi  Templates
aws-iot-device-sdk-js                  Documents   iot_1.0-1_armhf.deb  projects      root                     Videos
certs                                  Downloads   Music                Public        root.pem                 wiringPi

pi@raspberrypi:~ $ cd certs/
pi@raspberrypi:~/certs $ ls
1cf77402f9-certificate.pem.crt  1cf77402f9-private.pem.key  1cf77402f9-public.pem.key

When I browse to https://A34SXNTM6AT7XH.iot.us-west-2.amazonaws.com/things/MyNewThing/shadow or https://A34SXNTM6AT7XH.iot.us-west-2.amazonaws.com I see Missing Authentication Token message: enter image description here

I am not sure how to get the last step working so I could see stuff in the URLs when I browse to them. Can someone help me figure which steps I am missing or is missing from the tutorial? enter image description here

Jul 11, 2018 in IoT (Internet of Things) by Matt
• 2,270 points
1,237 views

1 answer to this question.

0 votes

This fixed the problem:

  • Browse to https://console.aws.amazon.com/iam/home?region=us-west-2#security_credentialand then if you don’t have a key click on create new access key and if you already have it save the information and enter it in front of entries of aws configure command and also for region select “us-west-2” is Oregon is selected in your dashboard.
  • After that you will be able to see the credential in the following: The AWS credentials file – located at ~/.aws/credentials on Linux, OS X, or Unix
answered Jul 11, 2018 by anonymous2
• 4,240 points

Related Questions In IoT (Internet of Things)

+1 vote
1 answer

Does learning IoT need you to buy a Raspberry Pi or similar IoT devices?

Though I'd recommend having the device for ...READ MORE

answered Oct 16, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,021 views
0 votes
1 answer

How to work a AWS IOT Lambda with a devices?

Hey KanaguRaj, use this for reference: https://serverless.com/ ...READ MORE

answered Apr 12, 2019 in IoT (Internet of Things) by Vardhan
• 13,150 points
763 views
0 votes
1 answer

Display time in a Windows Core IoT app with a clock!

It is possible, but you should understand ...READ MORE

answered Jul 10, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,554 views
0 votes
1 answer

AWS IoT - Access shadow through .Net, REST, with certificate

If you want to publish and/or subscribe ...READ MORE

answered Jul 25, 2018 in IoT (Internet of Things) by anonymous2
• 4,240 points
2,029 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 views
0 votes
1 answer

AWS IoT login from android MQTT client using IAM is not working

Seeing your comments and questions. I had ...READ MORE

answered Jul 24, 2018 in IoT (Internet of Things) by anonymous2
• 4,240 points
2,346 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP