aws iot describe-endpoint::您必须指定区域
aws iot describe-endpoint::You must specify a region
我正在关注 this tutorial 使用 Node.js SDK 将 Raspberry Pi 连接到 AWS IoT,我已经完成了所有其他步骤,但我在身份验证和证书步骤中迷路了:
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 or https://A34SXNTM6AT7XH.iot.us-west-2.amazonaws.com 时,我看到 Missing Authentication Token
消息:
我不确定如何让最后一步正常工作,以便在浏览 URL 时可以看到它们中的内容。有人可以帮我弄清楚教程中缺少或缺少哪些步骤吗?
这解决了问题:
- 浏览到
https://console.aws.amazon.com/iam/home?region=us-west-2#security_credential
然后,如果您没有密钥,请单击创建新访问密钥,然后
如果您已经拥有它,请保存信息并在前面输入
aws configure
命令以及区域 select 的条目
“us-west-2”是俄勒冈州 selected in your dashboard.
- 之后您将能够在以下位置看到凭据:
AWS 凭证文件 – 位于 Linux、OS 的
~/.aws/credentials
X 或 Unix
我正在关注 this tutorial 使用 Node.js SDK 将 Raspberry Pi 连接到 AWS IoT,我已经完成了所有其他步骤,但我在身份验证和证书步骤中迷路了:
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 or https://A34SXNTM6AT7XH.iot.us-west-2.amazonaws.com 时,我看到 Missing Authentication Token
消息:
我不确定如何让最后一步正常工作,以便在浏览 URL 时可以看到它们中的内容。有人可以帮我弄清楚教程中缺少或缺少哪些步骤吗?
这解决了问题:
- 浏览到
https://console.aws.amazon.com/iam/home?region=us-west-2#security_credential
然后,如果您没有密钥,请单击创建新访问密钥,然后
如果您已经拥有它,请保存信息并在前面输入
aws configure
命令以及区域 select 的条目 “us-west-2”是俄勒冈州 selected in your dashboard. - 之后您将能够在以下位置看到凭据:
AWS 凭证文件 – 位于 Linux、OS 的
~/.aws/credentials
X 或 Unix