aws iot describe-endpoint ::您必须指定一个区域 [英] aws iot describe-endpoint::You must specify a region

查看:386
本文介绍了aws iot describe-endpoint ::您必须指定一个区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注本教程使用Node.js SDK将Raspberry Pi连接到AWS IoT,我已经完成了所有其他步骤,但是我在身份验证和证书步骤中迷路了:

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

当我浏览到 https://A34SXNTM6AT7XH.iot .us-west-2.amazonaws.com/things/MyNewThing/shadow https://A34SXNTM6AT7XH.iot.us-west-2.amazonaws.com 我看到了Missing Authentication Token消息:

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:

我不确定如何使最后一步起作用,因此当我浏览URL时可以看到URL中的内容.有人可以帮助我确定本教程中缺少或缺少的步骤吗?

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?

推荐答案

此问题已解决:

  • 浏览至 https://console.aws.amazon.com/iam/home?region = us-west-2#security_credential 然后,如果您没有密钥,请单击创建新访问密钥",然后 如果您已经拥有它,则保存信息并在 aws configure命令的条目,也用于区域选择 在您的信息中心中选择了"us-west-2"是俄勒冈州.
  • 之后,您将能够在以下位置查看证书: AWS凭证文件–在Linux,OS上的~/.aws/credentials中 X或Unix
  • Browse to https://console.aws.amazon.com/iam/home?region=us-west-2#security_credential and 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

这篇关于aws iot describe-endpoint ::您必须指定一个区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆