当前位置:网站首页>Bridge emqx cloud data to AWS IOT through the public network
Bridge emqx cloud data to AWS IOT through the public network
2022-07-02 21:54:00 【51CTO】
In the IOT business scenario , It often involves real-time extraction of data generated by massive IOT devices 、 Filter 、 Spin off 、 Conversion, etc .EMQ Launched fully managed cloud native MQTT Message service EMQX Cloud Provides high-performance built-in data integration functions , It can help users to implement various cloud services ( Such as Kafka、MongoDB、AWS RDS、AWS DocumentDB、 AWS IoT etc. ) The connection of , Transfer the Internet of things data to various third-party databases as required 、 Message queue 、 In data system , So as to simplify the application development of the Internet of things , Accelerate business delivery .
This article will show you how to use EMQX Cloud The data integration function bridges data to through the public network AWS IoT, With the help of AWS IoT Easy to use AWS Lambda、Amazon Kinesis、Amazon S3、Amazon Machine Learning、Amazon DynamoDB、Amazon CloudWatch、AWS CloudTrail And built in Kibana Integrated Amazon Elasticsearch Service etc. AWS Service building IoT Applications . There is no need to manage any infrastructure , The collection of data generated by interconnected devices can be realized 、 Processing and analysis .
AWS IoT brief introduction
What is? AWS IoT
Amazon IoT Core It is a hosted cloud platform , Let connected devices easily and securely interact with cloud applications and other devices .Amazon IoT It can support billions of devices and trillions of messages , It can process these messages and route them to Amazon cloud technology terminal nodes and other devices safely and reliably . With the help of Amazon IoT, Your application can track and communicate with all your devices at any time , Even if these devices are not connected .
AWS IoT
AWS IoT Advantages of the platform
(1) Extensive and in-depth :AWS Have extensive and in-depth... From the edge to the cloud IoT service , Provide local data collection and analysis capabilities as well as the cloud for IoT Designed data management and rich analysis integration services .
(2) Multi tier security : Including preventive security mechanisms ( Such as device data encryption and access control )、 Continuously monitor and audit security configuration, etc .
(3) Excellent AI Integrate :AWS take AI and IoT Bind together , Make the device more intelligent . Support multiple machine learning frameworks .
(4) Large scale validation :AWS IoT Built on extensibility 、 Secure and proven cloud infrastructure , Scalable to billions of different devices and trillions of messages .
Use EMQX Cloud Bridge data to AWS IoT
Opening NAT gateway
stay EMQX Cloud Deployment details page , Open value-added services —- NAT gateway , It is convenient for the public network to access AWS IoT.
EMQX Cloud Opening NET gateway
To configure AWS IoT
Create transaction
Get into AWS IoT Control panel , Find Management - Business , Click Create transaction , You can create one called emqx The business of .
AWS IoT Create transaction
Create and download certificates
After the transaction is created , You can create a certificate directly .
AWS IoT Create and download certificates
After the certificate is created , You need to download the certificate on this page , Used for two-way authentication when connecting devices .
AWS IoT Download the certificate
Create a policy and associate it with a certificate
Find security - Strategy , Create a emqx-bridge The strategy of , Writing strategy , The configuration is as follows .
Create a strategy
{
"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"
}
]
}
After the policy is created , It needs to be associated with the certificate created in the previous step .
Associated to certificate
obtain AWS IoT Public network connection address
Get the connection address in the setting endpoint, For device connection .
obtain AWS IoT Public network connection address
To configure EMQX Cloud Data integration
Get into EMQX Cloud Deployment page for , Click data integration - MQTT Bridge.
To configure EMQX Cloud Data integration
Fill in the resources page AWS IoT Resource details for .
Fill in AWS IoT Resource details for
After confirming that resources are available , Configure rules , Filter and process data .
Rule configuration
After configuring the rules , Response actions need to be configured , That is, bridging data to AWS IoT.
Configure response actions
When you are finished creating resources - Add rules - After adding actions , Relevant information can be viewed on the details page .
Check the details
View created rules , Click monitor , It can be seen that the monitoring times of successful bridging are 0, The initialization state .
Check the number of successful bridge monitoring
Test verification
Use Python SDK Connect to EMQX Cloud Deploy , To the subject emqx/bridge Send a message .
To the subject emqx bridge Send a message
Use MQTTX Connect to AWS IoT, subscribe emqx/bridge, Can receive from EMQX Cloud Deployed messages .
Use MQTTX Connect to AWS IoT
Use MQTTX Connect to AWS IoT1
stay EMQX Cloud console View rule monitoring , You can check bridging data to AWS IoT Successful or not .
View rule monitoring
Conclusion
thus , We finished using EMQX Cloud The data integration function bridges data to through the public network AWS IoT The whole process of .EMQX Cloud Flexible data integration capabilities , combination AWS IoT Rich application Ecology , Users can create an Internet of things application in a few minutes .
边栏推荐
- How to prevent your jar from being decompiled?
- [shutter] shutter layout component (physicalmodel component)
- [shutter] shutter gesture interaction (click event handling | click OnTap | double click | long press | click Cancel | press ontapdown | lift ontapup)
- Daily book CSO advanced road first exposed
- China's Micro SD market trend report, technology dynamic innovation and market forecast
- [CV] Wu Enda machine learning course notes | Chapter 12
- 如何访问kubernetes API?
- Une semaine de vie
- Infrastructure is code: a change is coming
- Riding the wind of "cloud native" and stepping on the wave of "digitalization", new programmer 003 starts pre-sale
猜你喜欢
Today, I met a Alipay and took out 35K. It's really sandpaper to wipe my ass. it's a show for me
PIP audit: a powerful security vulnerability scanning tool
MySQL learning record (3)
About test cases
*C语言期末课程设计*——通讯录管理系统(完整项目+源代码+详细注释)
Find objects you can't see! Nankai & Wuhan University & eth proposed sinet for camouflage target detection, and the code has been open source
Secondary development of ANSYS APDL: post processing uses command flow to analyze the result file
Off chip ADC commissioning record
[shutter] shutter layout component (wrap component | expanded component)
地理探测器原理介绍
随机推荐
TinyMCE visual editor adds Baidu map plug-in
sql service 截取字符串
ServiceMesh主要解决的三大痛点
[shutter] statefulwidget component (pageview component)
Centos7 installation and configuration of redis database
MySQL learning record (8)
100 important knowledge points that SQL must master: using cursors
【剑指 Offer 】56 - II. 数组中数字出现的次数 II
Research Report on minimally invasive medical robot industry - market status analysis and development prospect prediction
[shutter] shutter layout component (opacity component | clipprect component | padding component)
ArrayList分析2 :Itr、ListIterator以及SubList中的坑
The difference between include < > and include ""
分享一下如何制作专业的手绘电子地图
Physical layer cables and equipment
Capacity expansion mechanism of ArrayList
D4:非成对图像去雾,基于密度与深度分解的自增强方法(CVPR 2022)
在beforeDestroy中销毁localStorage中的值无效
【零基础一】Navicat下载链接
Daily book CSO advanced road first exposed
Basic IO interface technology - microcomputer Chapter 7 Notes