如何让Alexa Skill到达内网设备

How to make Alexa Skill reach internal network devices

我开发了一个 Alexa for business skill,它连接到我们的一些本地设备并在它们上执行多项任务。在开发过程中,我为这些设备中的几个提供了 public IP 地址,以便 AWS 可以访问它们。但是,我希望 AWS 能够在它们位于我们的局域网内时连接到它们。我在想可以通过 VPN 建立连接,但我不知道这是否可行或一个好主意。有什么办法吗?

谢谢

您可以使用 AWS Direct Connect, however there are some limitations as your network must be able to connect to a Direct Connect location. See this guide for more info: https://aws.amazon.com/directconnect/getting-started/

来完成此操作

还有您建议的使用 VPN 的选项:https://docs.aws.amazon.com/vpc/latest/userguide/vpn-connections.html

最后您也许可以使用 Localtunnel 或 ngrok.com 之类的东西,但这需要在您的专用网络上打开端口。

在大多数情况下,最好避免重新连接到您的网络,而是让设备从您的网络中轮询以接收指令。

根据设备的不同,您可能需要考虑使用 AWS IoT as a mechanism for connecting the devices to a control plane in AWS. That control plane could comprise either device shadows for each device (if device state management is important), or an MQTT message broker(如果需要简单的消息传递)。

您能否详细解释一下任务是什么以及设备是什么?