AI/ML, AWS, Cloud Computing

4 Mins Read

Organize and Process IoT Data Quickly Using AWS IoT Analytics

Voiced by Amazon Polly

Introduction

IoT device use has recently increased in applications such as agriculture, smartwatches, smart buildings, IoT retail shops, object tracking, and many more. These Internet of Things devices generate a large amount of data, which is subsequently transported to the cloud to be analyzed.

Because IoT data is generally unorganized and difficult to evaluate, experts must first format it before beginning the analytics process. AWS IoT Analytics will enable you to convert unstructured data to structured data and then analyze it.

This blog will show you how to create a dataset with AWS IoT Analytics. We need to create a channel, a data pipeline, and data storage to create a dataset.

iot1

Customized Cloud Solutions to Drive your Business Success

  • Cloud Migration
  • Devops
  • AIML & IoT
Know More

Creation of Channel

  1. Log in to AWS Console and type AWS IoT Analytics into the search box, then pick the IoT Analytics service. In the IoT Analytics service, choose the channel and click the Create Channel button in the upper right corner.
  2. Enter testing_channel as the Channel name, then select Service managed storage as the Storage type, which means AWS IoT Analytics will manage the volumes on the user’s behalf. Data will be stored in S3 in the background. Then, click Next.
  3. On the Ingesting messages from IoT core option to receive messages in a particular topic, enter the MQTT topic as testing/# in the topic filter.
  4. Click Create New in the IAM Role option, enter testing_channel_role as the role name, and then click Create Role. Then click next and finally choose the create channel option; the channel will be created in a short time.

iot2

Creation of Data Store

  1. Choose Data Stores in the AWS IoT Analytics console, then click Create Data Store
  2. In the top right corner, enter the Datastore ID as testing_datastore, then click next.
  3. Select Service managed storage as the Storage type, then click next, and choose data format as JSON.
  4. Click next, leave Custom data partitioning as its default, then click next.
  5. Finally review and click Create Data Store.

iot3

Creation of Data Pipeline

  1. In the AWS IoT Analytics console, select Pipelines, then click Create pipeline in the top right corner and name the pipeline testing_pipeline.
  2. Choose testing_channel for the pipeline source and testing datastore for the pipeline output.
  3. In Infer message attributes, enter the Attribute name as Unit, Value as deg C, and data type string. then click Next.
  4. We can see pipeline activity in Enrich, transform, and filter messages, which will help us transform the data using lambda or use different formulas, or we can add or remove data points. as of now leave it as default and click next. Finally, review the pipeline and then click the Create Pipeline option. The pipeline will be created in a short amount of time.

ito4

Creation of Dataset

  1. In the AWS IoT Analytics console, select datasets, then click Create a dataset.
  2. In the top right corner, on the next page choose the SQL datasets Option then name the Dataset testing_dataset.
  3. Choose testing_datastore for the Datastore source then click next. The AWS IoT Analytics dataset will query the data from the datastore using SQL.
  4. Enter SELECT * FROM testing datastore LIMIT 100 in the Author SQL query field and click Next. Click next after leaving the Data selection filter options alone.
  5. Leave the Set query schedule options alone and press the Next button. Click Next after leaving Configure the findings of your dataset selections alone.
  6. Configuring dataset content delivery rules will assist in storing the dataset in S3; for the time being, leave that option alone and click next.
  7. Finally, look over the dataset and select the Create dataset button. The dataset will be available in a short period.

iot5

Data Ingestion and Testing

  1. To ingest the IoT data to AWS IoT analytics navigate to the AWS IoT core and click MQTT test client to choose a publish to a topic option.
  2. Enter the topic name as testing/121 and message payload as {“temperature”: 27,”humidity”: 60} and click publish, similarly publish the message with different values as {“temperature”:28,”humidity”:65}, {“temperature”: 26,”humidity”:63}, {“temperature”: 22,”humidity”: 62}, {“temperature”:21,”humidity”:61}, {“temperature”:25,”humidity”:65}.
  3. Then navigate to the testing_dataset in the IoT Analytics, on the top right corner click the Run now option and click the Content option.
  4. Finally, click on created dataset name so we can see the created dataset.

iot6

iot7

Conclusion

Thus, we have seen how to create a channel, pipeline, data store, and dataset in AWS IoT Analytics. When we use AWS IoT analytics for IoT applications, we save time and perform analytics on the same data, which we can then display using Quicksight.

Get your new hires billable within 1-60 days. Experience our Capability Development Framework today.

  • Cloud Training
  • Customized Training
  • Experiential Learning
Read More

About CloudThat

CloudThat is a leading provider of Cloud Training and Consulting services with a global presence in India, the USA, Asia, Europe, and Africa. Specializing in AWS, Microsoft Azure, GCP, VMware, Databricks, and more, the company serves mid-market and enterprise clients, offering comprehensive expertise in Cloud Migration, Data Platforms, DevOps, IoT, AI/ML, and more.

CloudThat is the first Indian Company to win the prestigious Microsoft Partner 2024 Award and is recognized as a top-tier partner with AWS and Microsoft, including the prestigious ‘Think Big’ partner award from AWS and the Microsoft Superstars FY 2023 award in Asia & India. Having trained 850k+ professionals in 600+ cloud certifications and completed 500+ consulting projects globally, CloudThat is an official AWS Advanced Consulting Partner, Microsoft Gold Partner, AWS Training PartnerAWS Migration PartnerAWS Data and Analytics PartnerAWS DevOps Competency PartnerAWS GenAI Competency PartnerAmazon QuickSight Service Delivery PartnerAmazon EKS Service Delivery Partner AWS Microsoft Workload PartnersAmazon EC2 Service Delivery PartnerAmazon ECS Service Delivery PartnerAWS Glue Service Delivery PartnerAmazon Redshift Service Delivery PartnerAWS Control Tower Service Delivery PartnerAWS WAF Service Delivery PartnerAmazon CloudFront Service Delivery PartnerAmazon OpenSearch Service Delivery PartnerAWS DMS Service Delivery PartnerAWS Systems Manager Service Delivery PartnerAmazon RDS Service Delivery PartnerAWS CloudFormation Service Delivery PartnerAWS ConfigAmazon EMR and many more.

FAQs

1. What are the steps involved in AWS IoT Analytics?

ANS: – Creation of Channel, creation of datastore, creation of pipeline, and creation of the dataset.

2. What are the applications of AWS IoT Analytics?

ANS: – Smart agriculture, Maintenance that is predicted, Proactive supply replenishment, and Process efficiency evaluation.

WRITTEN BY Vasanth Kumar R

Vasanth Kumar R works as a Sr. Research Associate at CloudThat. He is highly focused and passionate about learning new cutting-edge technologies including Cloud Computing, AI/ML & IoT/IIOT. He has experience with AWS and Azure Cloud Services, Embedded Software, and IoT/IIOT Development, and also worked with various sensors and actuators as well as electrical panels for Greenhouse Automation.

Share

Comments

    Click to Comment

Get The Most Out Of Us

Our support doesn't end here. We have monthly newsletters, study guides, practice questions, and more to assist you in upgrading your cloud career. Subscribe to get them all!