Bridging data to AWS IoT through the public network with EMQX Cloud

Introduction to AWS IoT

What is AWS IoT?

Amazon IoT Core is a hosted cloud platform that makes it easy for connected devices to securely interact with cloud applications and other devices. Amazon IoT can support billions of devices and trillions of messages and can process and securely route them to Amazon Cloud Technologies endpoint nodes and other devices. With Amazon IoT, your applications can track and communicate with all your devices at all times, even when they are not connected.

Benefits of the AWS IoT platform

(1) Broad and deep: AWS has broad and deep IoT services from the edge to the cloud, providing local data collection and analysis capabilities as well as data management and rich analytics integration services on the cloud designed for IoT.

Introduction to EMQX Cloud

EMQX Cloud is a fully managed cloud-native MQTT service from EMQ that connects to massive numbers of IoT devices and integrates with various databases and business systems.

Bridging Data to AWS IoT with EMQX Cloud

Turn on NAT Gateways

On the EMQX Cloud deployment details page, enable the value-added service, NAT Gateway, to facilitate public network access to AWS IoT.

Configure AWS IoT

  1. Create a transaction
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "iot:Connect",
"Resource": "arn:aws:iot:us-east-1:845523974165:client/emqx-bridge_*"
},
{
"Effect": "Allow",
"Action": "iot:Publish",
"Resource": "arn:aws:iot:us-east-1:845523974165:topic/emqx/bridge"
},
{
"Effect": "Allow",
"Action": "iot:Receive",
"Resource": "arn:aws:iot:us-east-1:845523974165:topic/emqx/bridge"
},
{
"Effect": "Allow",
"Action": "iot:RetainPublish",
"Resource": "arn:aws:iot:us-east-1:845523974165:topic/emqx/bridge"
},
{
"Effect": "Allow",
"Action": "iot:Subscribe",
"Resource": "arn:aws:iot:us-east-1:845523974165:topicfilter/emqx/bridge"
}
]
}

Configure EMQX Cloud Data Integration

Go to the EMQX Cloud deployment page and click Data Integration — MQTT Bridge.

Test Verification

  1. Use the Python SDK to connect to the EMQX Cloud deployment and send messages to the topic emqx/bridge.

Summary

Now we have completed the process of bridging data to AWS IoT over the public network using EMQX Cloud data integration. EMQX Cloud’s flexible data integration capabilities, combined with AWS IoT’s rich application ecosystem, will enable users to create an IoT application in minutes.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
EMQ Technologies

EMQ Technologies

EMQ is an open-source IoT data infrastructure software provider, delivering the world’s leading open-source MQTT message broker and stream processing database.