当前位置:网站首页>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 .
边栏推荐
- Pyqt picture decodes and encodes and loads pictures
- :last-child 不生效解决
- 100 important knowledge points that SQL must master: using cursors
- Three chess games
- Summary of the first week of summer vacation
- 记录一下微信、QQ、微博分享web网页功能
- From personal heroes to versatile developers, the era of programmer 3.0 is coming
- Pip install whl file Error: Error: … Ce n'est pas une roue supportée sur cette plateforme
- [shutter] shutter layout component (fractionallysizedbox component | stack layout component | positioned component)
- Plastic floating dock Industry Research Report - market status analysis and development prospect forecast
猜你喜欢

Daily book CSO advanced road first exposed

Find objects you can't see! Nankai & Wuhan University & eth proposed sinet for camouflage target detection, and the code has been open source

LightGBM原理及天文数据中的应用

Three chess games

Gee: (II) resampling the image

Introduction to victoriametrics

treevalue——Master Nested Data Like Tensor

Blue Bridge Cup Winter vacation homework (DFS backtracking + pruning)

How to prevent your jar from being decompiled?

Structure array, pointer and function and application cases
随机推荐
The book "new programmer 002" is officially on the market! From "new database era" to "software defined car"
Etcd raft protocol
Today, I met a Alipay and took out 35K. It's really sandpaper to wipe my ass. it's a show for me
Research Report on minimally invasive medical robot industry - market status analysis and development prospect prediction
System (hierarchical) clustering method and SPSS implementation
China's Micro SD market trend report, technology dynamic innovation and market forecast
Unity3D学习笔记4——创建Mesh高级接口
情感计算与理解研究发展概述
MySQL installation failed -gpg verification failed
一周生活
About test cases
Read a doctor, the kind that studies cows! Dr. enrollment of livestock technology group of Leuven University, milk quality monitoring
MySQL learning record (5)
Five message formats of OSPF
pyqt圖片解碼 編碼後加載圖片
Official announcement! The golden decade of new programmers and developers was officially released
如何防止你的 jar 被反编译?
[Yu Yue education] reference materials of analog electronic technology of Nanjing Institute of information technology
Oriental Aesthetics and software design
beginning