Aws iot tutorial google docs

Page 1

Aws-IoT Tutorial Getting Started with Aws IoT This tutorial shows you how to create resources required to send, receive, and process MQTT messages from devices using AWS IoT. You need the following to complete this tutorial: ● A computer with Wi-Fi access. ● If you have an AWS IoT button (pictured here), you can use it to complete this tutorial. ● If you do not have a button, you can purchase one or you can use the MQTT client in the AWS IoT console to emulate a device.

Sign in to the AWS IoT Console If you do not have an AWS account, create one. To create an AWS account: 1. Open the AWS home page and choose Create an AWS Account. 2. Follow the online instructions. Part of the sign-up procedure involves receiving a phone call and entering a PIN using your phone's keypad. 3. Sign in to the AWS Management Console and open the AWS IoT console.

Register a device in the Registry Devices connected to AWS IoT are represented by things in the registry. The registry allows you to keep a record of all of the devices that are connected to your AWS IoT account. The fastest way to start using your AWS IoT Button is to download the mobile app for iOS or Android. The mobile app creates the required AWS IoT resources for you, and adds an event source to your button that uses a Lambda blueprint to invoke a new AWS Lambda function of your choice. Blueprints are preconfigured Lambda functions that allow you to quickly connect the click of a button to the functions that fit you best, such as sending automated emails or text messages or deploying other AWS services. You can download the mobile apps from The Apple App Store or Google Play.


Create and Activate a Device Certificate Communication between your device and AWS IoT is protected through the use of X.509 certificates. AWS IoT can generate a certificate for you or you can use your own X.509 certificate. In this tutorial, AWS IoT generates the X.509 certificate for you. Certificates must be activated prior to use. 1. Choose Create certificate.

2. 3. On the Certificate created! page, choose Download for the certificate, private key, and the root CA for AWS IoT (the public key need not be downloaded). Save each of them to your computer, and then choose Activate to continue. Learn Aws IoT Tutorials Here


4. 5. Be aware that the downloaded filenames may be different than those listed on the Certificate created! page. For example: ● 2a540e2346-certificate.pem.crt.txt ● 2a540e2346-private.pem.key ● 2a540e2346-public.pem.key 6. Note 7. Although it is unlikely, root CA certificates are subject to expiration and/or revocation. If this should occur, you must copy new a root CA certificate onto your device. 8. Choose the back arrow until you have returned to the main AWS IoT console screen.


9.


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.