{"id":10356,"date":"2022-03-11T00:04:59","date_gmt":"2022-03-11T00:04:59","guid":{"rendered":"https:\/\/blog.cloudthat.com\/?p=10356"},"modified":"2024-06-25T11:04:23","modified_gmt":"2024-06-25T11:04:23","slug":"step-by-step-guide-to-register-a-new-iot-device-in-aws-cloud","status":"publish","type":"blog","link":"https:\/\/www.cloudthat.com\/resources\/blog\/step-by-step-guide-to-register-a-new-iot-device-in-aws-cloud","title":{"rendered":"Step-By-Step Guide To Register A New IoT Device in AWS Cloud"},"content":{"rendered":"<p>The Internet of Things (IoT) refers to physical items equipped with sensors, embedded software, computing power, and other technologies. It may communicate with other devices over the Internet or other local communication networks. In addition, devices occasionally communicate with one another on a local network or with cloud services to perform specific tasks.<\/p>\n<p>When we think about IoT, the devices need to connect to the cloud, such as <a href=\"https:\/\/blog.cloudthat.com\/top-cloud-service-providers-in-2021-aws-microsoft-azure-and-google-cloud-platform\/?utm_source=blog-website&amp;utm-medium=text-link&amp;utm_campaign=\/top-cloud-service-providers-in-2021-aws-microsoft-azure-and-google-cloud-platform\/\" target=\"_blank\" rel=\"noopener\"><strong>Amazon Web Services (AWS), Microsoft Azure, Google Cloud Platform (GCP),<\/strong> <\/a>Alibaba Cloud, Oracle Cloud, IBM Cloud, etc.<\/p>\n<p>Amazon Web Services (AWS) is a well-known cloud service company. There are many services available not just in IoT but also in other applications. AWS offers a variety of services for IoT applications, including FreeRTOS and AWS IoT GreenGrass for device software, AWS IoT Core, AWS IoT Device Management, AWS IoT Device Defender, and AWS IoT Fleetwise for control services, and AWS IoT Analytics, AWS IoT Events, AWS IoT Sitewise, and AWS IoT TwinMaker for analytics.<\/p>\n<p>To learn more about <a href=\"https:\/\/blog.cloudthat.com\/introducing-aws-iot-1-click-new-aws-iot-service-to-enable-simple-devices\/?utm_source=blog-website&amp;utm-medium=text-link&amp;utm_campaign=introducing-aws-iot-1-click-new-aws-iot-service-to-enable-simple-devices\/\" target=\"_blank\" rel=\"noopener\"><strong>AWS IoT 1-Click<\/strong><\/a>, here is an exciting blog to get you started.<\/p>\n<p>The first step after obtaining sensor data is to create a connection between the cloud and the device when it comes to IoT. AWS&#8217; IoT core enables the communication between edge IoT devices and AWS services.<\/p>\n<h2>We will look at registering a new device to the AWS IoT core in this section.<br \/>\n<a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10357\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot11.png\" alt=\"AWS IoT Core\" width=\"484\" height=\"240\" \/><\/a><\/h2>\n<p>If you do not have an AWS account, first create the account as a free tier log in to the AWS free tire account. Then, in the search bar, enter <strong>IoT Core,<\/strong> then in the services blade, click on<strong> IoT Core<\/strong>.<br \/>\n<a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot21.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10358\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot21.png\" alt=\"AWS IoT Core\" width=\"726\" height=\"303\" \/><\/a><\/p>\n<p>Click <strong>Connect<\/strong> on AWS IoT Blade to register the new device on the left side; then click <strong>Get started<\/strong>. After that, in the Onboard a device section, click <strong>Get started<\/strong>. AWS also provides onboard many devices, which will help to onboard many devices at a time.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot31.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10359\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot31.png\" alt=\"AWS IoT Core\" width=\"726\" height=\"508\" \/><\/a><\/p>\n<p>In the Connect to AWS IoT console, click <strong>Get started<\/strong>.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot41.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10360\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot41.png\" alt=\"AWS IoT core\" width=\"726\" height=\"468\" \/><\/a><\/p>\n<p>AWS provides the readily available SDK (Software Development Kit), which will help you directly connect to AWS IoT. According to your application, you can select which OS (Operating System) platform and SDK are needed; on my laptop, Windows OS is running and python is installed, so I go for Windows and python option.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot51.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10361\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot51.png\" alt=\"AWS IoT Core\" width=\"726\" height=\"612\" \/><\/a><\/p>\n<p>After clicking <strong>Next<\/strong>, you can see the Registered Thing name and click <strong>Next Step.<\/strong><\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot61.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10362\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot61.png\" alt=\"AWS IoT core\" width=\"726\" height=\"321\" \/><\/a><\/p>\n<p>When we register a device, AWS immediately produces a thing policy with the same name, allowing us to access only through the SDK device we are about to download. SDK and all Nassery certifications are included in the Download kit. For example, to get the SDK kit for Windows, <strong>click <\/strong>the <strong>Windows <\/strong>option to get the download.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10363\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot7.png\" alt=\"AWS IoT Core\" width=\"726\" height=\"555\" \/><\/a><\/p>\n<p>In Configuration and test your device console steps are given how to run the SDK.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiotn.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10367\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiotn.png\" alt=\"AWS IoT Core\" width=\"726\" height=\"451\" \/><\/a><\/p>\n<p>First, <strong>unzip <\/strong>the <strong>connect_device_package<\/strong>. Make sure python is installed already, open the Windows PowerShell run the following command.<\/p>\n<pre class=\"nums:false nums-toggle:false lang:default decode:true \">Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process<\/pre>\n<p>Type<strong> yes<\/strong> to change the execution policy and then type <strong>.\\start.ps1, <\/strong>and you can see the device started to publish the data to AWS IoT Core.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10364\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot9.png\" alt=\"AWS IoT Core\" width=\"726\" height=\"412\" \/><\/a><\/p>\n<p>The console shows the device state as connected to your device and received data displayed below. This ensures that the IoT device is securely attached to AWS IoT Core and clicks <strong>Done<\/strong>.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10369\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot10.png\" alt=\"AWS IoT Core\" width=\"726\" height=\"657\" \/><\/a><\/p>\n<p>You can see the registered thing name displayed on the console.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot111.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10370\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot111.png\" alt=\"AWS IoT Core\" width=\"726\" height=\"325\" \/><\/a><\/p>\n<p>Another approach to observing the receiving data is navigating to the AWS IoT Core interface, clicking Test, and selecting the <strong>Subscribe to a topic<\/strong> option. Inserts # in the topic filter section, which implies a wildcard listening to all topics for that specific device. Select the Subscribe option.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10371\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot12.png\" alt=\"AWS IoT Core\" width=\"726\" height=\"424\" \/><\/a><\/p>\n<p>Now, go to Windows PowerShell and run <strong>.\\start.ps1 <\/strong>again.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot13.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10372\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot13.png\" alt=\"AWS IoT Core\" width=\"726\" height=\"123\" \/><\/a><\/p>\n<p>You can see data in the console which is sent by the device.<\/p>\n<p><a href=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10373\" src=\"https:\/\/content.cloudthat.com\/resources\/wp-content\/uploads\/2022\/11\/awsiot14.png\" alt=\"AWS IoT Core\" width=\"726\" height=\"351\" \/><\/a><\/p>\n<h3>Conclusion<\/h3>\n<p>We have successfully registered the device in AWS IoT Core and got data from it. Then we can write Rules based on our application like storing data in S3, storing data in the database, triggering lambda, triggering AWS IoT Analytics, triggering SNS messages, and so on.<\/p>\n<h3>About CloudThat<\/h3>\n<p><a href=\"https:\/\/www.cloudthat.com\/\"><strong>CloudThat<\/strong><\/a>\u00a0is the official AWS Advanced Consulting Partner and collaborates with top IT giants to provide cloud strategy, build solutions, and manage infrastructure. We are on a mission to build\u00a0a robust\u00a0cloud computing ecosystem by disseminating\u00a0knowledge on technological intricacies within the cloud space.\u00a0Our blogs, webinars,\u00a0case studies, and white papers\u00a0enable all the stakeholders in the cloud computing sphere.<\/p>\n<p>Feel free to drop a comment or any queries you have regarding AWS services, cloud adoption, consulting, and we will get back to you quickly. To get started, go through\u00a0our\u00a0<strong><a href=\"https:\/\/www.cloudthat.com\/expert-advisory\/?utm_source=blog-website&amp;utm-medium=text-link&amp;utm_campaign=expert-advisory\">Expert Advisory\u00a0<\/a><\/strong>page\u00a0and\u00a0<strong><a href=\"https:\/\/www.cloudthat.com\/managed-services-packages\/\">Managed Services Package<\/a>\u00a0<\/strong>that is\u00a0<strong><a href=\"https:\/\/cloudthat.com\/?utm_source=blog-website&amp;utm-medium=text-link&amp;utm_campaign=cloudthat.com\/\">CloudThat<\/a>&#8216;s<\/strong>\u00a0offerings.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"author":259,"featured_media":10686,"parent":0,"comment_status":"open","ping_status":"open","template":"","blog_category":[3606,3607],"user_email":"vasanthr@cloudthat.com","published_by":"324","primary-authors":"","secondary-authors":"","acf":[],"_links":{"self":[{"href":"https:\/\/www.cloudthat.com\/resources\/wp-json\/wp\/v2\/blog\/10356"}],"collection":[{"href":"https:\/\/www.cloudthat.com\/resources\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.cloudthat.com\/resources\/wp-json\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloudthat.com\/resources\/wp-json\/wp\/v2\/users\/259"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloudthat.com\/resources\/wp-json\/wp\/v2\/comments?post=10356"}],"version-history":[{"count":1,"href":"https:\/\/www.cloudthat.com\/resources\/wp-json\/wp\/v2\/blog\/10356\/revisions"}],"predecessor-version":[{"id":45999,"href":"https:\/\/www.cloudthat.com\/resources\/wp-json\/wp\/v2\/blog\/10356\/revisions\/45999"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cloudthat.com\/resources\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.cloudthat.com\/resources\/wp-json\/wp\/v2\/media?parent=10356"}],"wp:term":[{"taxonomy":"blog_category","embeddable":true,"href":"https:\/\/www.cloudthat.com\/resources\/wp-json\/wp\/v2\/blog_category?post=10356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}