Learning AWS IoT: Effectively manage connected devices on the AWS cloud using services such as AWS Greengrass, AWS button, predictive analytics and machine learning
()
About this ebook
The Internet of Things market increased a lot in the past few years and IoT development and its adoption have showed an upward trend. Analysis and predictions say that Enterprise IoT platforms are the future of IoT. AWS IoT is currently leading the market with its wide range of device support SDKs and versatile management console.
This book initially introduces you to the IoT platforms, and how it makes our IoT development easy. It then covers the complete AWS IoT Suite and how it can be used to develop secure communication between internet-connected things such as sensors, actuators, embedded devices, smart applications, and so on. The book also covers the various modules of AWS: AWS Greengrass, AWS device SDKs, AWS IoT Platform, AWS Button, AWS Management consoles, AWS-related CLI, and API references, all with practical use cases.
Near the end, the book supplies security-related best practices to make bi-directional communication more secure. When you've finished this book, you'll be up-and-running with the AWS IoT Suite, and building IoT projects.
Read more from Agus Kurniawan
Python and SQLite Development Rating: 0 out of 5 stars0 ratingsSmart Internet of Things Projects Rating: 4 out of 5 stars4/5Beginning Arduino Nano 33 IoT: Step-By-Step Internet of Things Projects Rating: 0 out of 5 stars0 ratingsGetting Started with Big Data Query using Apache Impala Rating: 0 out of 5 stars0 ratingsIntelligent IoT Projects in 7 Days: Build exciting projects using smart devices Rating: 0 out of 5 stars0 ratingsRaspbian OS Programming with the Raspberry Pi: IoT Projects with Wolfram, Mathematica, and Scratch Rating: 0 out of 5 stars0 ratingsIoT Projects with NVIDIA Jetson Nano: AI-Enabled Internet of Things Projects for Beginners Rating: 0 out of 5 stars0 ratingsPractical Azure Functions: A Guide to Web, Mobile, and IoT Applications Rating: 0 out of 5 stars0 ratingsLearn CloudFormation: Write, deploy, and maintain your AWS infrastructure Rating: 0 out of 5 stars0 ratingsRaspberry Pi LED Blueprints Rating: 0 out of 5 stars0 ratingsPractical Contiki-NG: Programming for Wireless Sensor Networks Rating: 0 out of 5 stars0 ratingsIoT Projects with Arduino Nano 33 BLE Sense: Step-By-Step Projects for Beginners Rating: 0 out of 5 stars0 ratings
Related to Learning AWS IoT
Related ebooks
Enterprise Internet of Things Handbook: Build end-to-end IoT solutions using popular IoT platforms Rating: 0 out of 5 stars0 ratingsExpert AWS Development: Efficiently develop, deploy, and manage your enterprise apps on the Amazon Web Services platform Rating: 0 out of 5 stars0 ratingsHybrid Cloud for Developers: Develop and deploy cost-effective applications on the AWS and OpenStack platforms with ease Rating: 0 out of 5 stars0 ratingsHands-On Internet of Things with Blynk: Build on the power of Blynk to configure smart devices and build exciting IoT projects Rating: 0 out of 5 stars0 ratingsInternet of Things with Raspberry Pi 3: Leverage the power of Raspberry Pi 3 and JavaScript to build exciting IoT projects Rating: 0 out of 5 stars0 ratingsPractical Internet of Things with JavaScript: Build standalone exciting IoT projects with Raspberry Pi 3 and JavaScript (ES5/ES6) Rating: 0 out of 5 stars0 ratingsHands-On Edge Analytics with Azure IoT: Design and develop IoT applications with edge analytical solutions including Azure IoT Edge Rating: 0 out of 5 stars0 ratingsDocker on Amazon Web Services: Build, deploy, and manage your container applications at scale Rating: 0 out of 5 stars0 ratingsAWS Cloud Projects: Strengthen your AWS skills through practical projects, from websites to advanced AI applications Rating: 0 out of 5 stars0 ratingsLearn AWS Serverless Computing: A beginner's guide to using AWS Lambda, Amazon API Gateway, and services from Amazon Web Services Rating: 0 out of 5 stars0 ratingsHands-On Internet of Things with MQTT: Build connected IoT devices with Arduino and MQ Telemetry Transport (MQTT) Rating: 0 out of 5 stars0 ratingsBuilding Serverless Applications with Python: Develop fast, scalable, and cost-effective web applications that are always available Rating: 0 out of 5 stars0 ratingsBuilding Serverless Architectures Rating: 0 out of 5 stars0 ratingsJavaScript Cloud Native Development Cookbook: Deliver serverless cloud-native solutions on AWS, Azure, and GCP Rating: 0 out of 5 stars0 ratingsInternet of Things from Scratch: Build IoT solutions for Industry 4.0 with ESP32, Raspberry Pi, and AWS Rating: 0 out of 5 stars0 ratingsDesigning AWS Environments: Architect large-scale cloud infrastructures with AWS Rating: 0 out of 5 stars0 ratingsAWS Administration - The Definitive Guide: Design, build, and manage your infrastructure on Amazon Web Services, 2nd Edition Rating: 0 out of 5 stars0 ratingsHands-On Azure for Developers: Implement rich Azure PaaS ecosystems using containers, serverless services, and storage solutions Rating: 0 out of 5 stars0 ratingsCloud Native Python: Build and deploy resilent applications on the cloud using microservices, AWS, Azure and more Rating: 0 out of 5 stars0 ratingsHands-On Machine Learning with C#: Build smart, speedy, and reliable data-intensive applications using machine learning Rating: 0 out of 5 stars0 ratingsIntel Edison Projects Rating: 0 out of 5 stars0 ratingsMastering AWS Security: Create and maintain a secure cloud ecosystem Rating: 0 out of 5 stars0 ratings
Networking For You
Home Networking Do-It-Yourself For Dummies Rating: 4 out of 5 stars4/5Linux Bible Rating: 0 out of 5 stars0 ratingsMicrosoft Certified Azure Fundamentals Study Guide: Exam AZ-900 Rating: 0 out of 5 stars0 ratingsCompTIA Network+ Study Guide: Exam N10-009 Rating: 0 out of 5 stars0 ratingsGroup Policy: Fundamentals, Security, and the Managed Desktop Rating: 5 out of 5 stars5/5The Compete Ccna 200-301 Study Guide: Network Engineering Edition Rating: 5 out of 5 stars5/5Cybersecurity: The Beginner's Guide: A comprehensive guide to getting started in cybersecurity Rating: 5 out of 5 stars5/5AWS Certified Cloud Practitioner Study Guide: CLF-C01 Exam Rating: 5 out of 5 stars5/5Networking All-in-One For Dummies Rating: 5 out of 5 stars5/5A Beginner's Guide to Ham Radio Rating: 0 out of 5 stars0 ratingsCompTIA Network+ Practice Tests: Exam N10-008 Rating: 0 out of 5 stars0 ratingsCompTIA Network+ Certification Guide (Exam N10-008): Unleash your full potential as a Network Administrator (English Edition) Rating: 0 out of 5 stars0 ratingsUnlock Any Roku Device: Watch Shows, TV, & Download Apps Rating: 0 out of 5 stars0 ratingsWireless Network Hacks and Mods For Dummies Rating: 0 out of 5 stars0 ratingsAdvanced OSINT Strategies: Online Investigations And Intelligence Gathering Rating: 0 out of 5 stars0 ratingsEmergency Preparedness and Off-Grid Communication Rating: 3 out of 5 stars3/5Quantum Computing For Dummies Rating: 0 out of 5 stars0 ratingsRaspberry Pi Electronics Projects for the Evil Genius Rating: 3 out of 5 stars3/5SharePoint For Dummies Rating: 0 out of 5 stars0 ratingsConcise and Simple Guide to IP Subnets Rating: 5 out of 5 stars5/5CCNA Certification Study Guide, Volume 2: Exam 200-301 Rating: 4 out of 5 stars4/5Windows Command Line Administration Instant Reference Rating: 0 out of 5 stars0 ratingsProgramming Arduino: Getting Started with Sketches Rating: 4 out of 5 stars4/5Networking For Dummies Rating: 5 out of 5 stars5/5OSINT 101 Handbook: Expert-Level Intelligence Gathering: Advanced Reconnaissance, Threat Assessment, And Counterintelligence Rating: 0 out of 5 stars0 ratingsEffective Python Penetration Testing Rating: 0 out of 5 stars0 ratingsThe Windows Command Line Beginner's Guide: Second Edition Rating: 4 out of 5 stars4/5Practical Ethical Hacking from Scratch Rating: 5 out of 5 stars5/5Microsoft Azure For Dummies Rating: 0 out of 5 stars0 ratings
Reviews for Learning AWS IoT
0 ratings0 reviews
Book preview
Learning AWS IoT - Agus Kurniawan
Learning AWS IoT
Effectively manage connected devices on the AWS cloud using services such as AWS Greengrass, AWS button, predictive analytics and machine learning
Agus Kurniawan
BIRMINGHAM - MUMBAI
Learning AWS IoT
Copyright © 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Gebin George
Acquisition Editor: Heramb Bhavsar
Content Development Editor: Abhishek Jadhav
Technical Editor: Swathy Mohan
Copy Editors: Safis Editing, Dipti Mankame
Project Coordinator: Judie Jose
Proofreader: Safis Editing
Indexer: Rekha Nair
Graphics: Tom Scaria
Production Coordinator: Nilesh Mohite
First published: January 2018
Production reference: 1250118
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78839-611-0
www.packtpub.com
mapt.io
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
PacktPub.com
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Contributors
About the author
Agus Kurniawan is a lecturer, researcher, IT consultant, and author. He has more than 16 years of experience in various software and hardware development projects for various companies. He also has been delivering materials in training and workshops, and delivering technical writing. He has been awarded the Microsoft Most Valuable Professional (MVP) award for 13 years in a row. He is currently doing some research related to software engineering, machine learning, networking and security systems at the Faculty of Computer Science, University of Indonesia, Indonesia.
I would like to thank the Amazon AWS and IoT communities anywhere in the world for contributing and making learning AWS IoT easy. Last, a thank you to my wife, Ela and my children, Thariq and Zahra for their great support to complete this book.
About the reviewer
Ruben Oliva Ramos is a computer systems engineer from Tecnologico of León Institute, with a master's degree in computer and electronics systems engineering, with a specialization in teleinformatics and networking from University of Salle Bajio in Leon, Guanajuato, Mexico. He has more than 5 years of experience of developing web applications to control and monitor devices connected with Arduino and Raspberry Pi using web frameworks and cloud services to build the IoT applications.
I would like to thank my lord, Jesus Christ for giving me strength and courage to pursue this project; to my dearest wife, Mayte; our two lovely sons, Ruben and Dario; to my father (Ruben); my dearest mom (Rosalia); my brother (Juan Tomas); and my sister (Rosalia), whom I love, for all their support while reviewing this book, for allowing me to pursue my dream, and tolerating me not being with them because of my busy job.
Packt is searching for authors like you
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Table of Contents
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
Getting Started with AWS IoT
Introducing AWS IoT
Introducing IoT devices and platforms for AWS IoT
Arduino
Raspberry Pi
BeagleBone Black and Green
IoT boards based on ESP8266 MCU
IoT boards based on ESP32
IoT boards based on TI CC32XX MCU
AWS IoT Management Console
AWS IoT Device SDK
Setting up AWS IoT for your IoT project
Creating an AWS account
Selecting an IoT device
Creating a security certificate
Configuring security access for AWS IoT
Setting up the development environment
Building an AWS IoT program
How to work with the program?
Testing all
Summary
Connecting IoT Devices to AWS IoT Platform
Introducing a connectivity model for AWS IoT
Selecting your IoT devices for AWS IoT
Configuring IoT devices to AWS IoT
AWS IoT development for Raspberry Pi 3
AWS IoT development for Arduino
AWS IoT development for boards based on ESP32
Building an IoT project with AWS IoT
Configuring AWS IoT
Developing the Arduino program
Developing a sensor subscriber
Testing
Summary
Optimizing IoT Computing Using AWS Greengrass
Introducing AWS Greengrass
Exploring supported IoT devices for AWS Greengrass
Deploying AWS Greengrass on Raspberry Pi 3
Preparing Raspberry Pi 3
Configuring Raspberry Pi 3 and IoT devices to AWS IoT
Configuring AWS Greengrass security
Installing AWS Greengrass on Raspberry Pi
Accessing AWS Greengrass
Building IoT projects with AWS Greengrass
Preparing runtime libraries on AWS Greengrass Core
Creating AWS Lambda
Deploying AWS Lambda with AWS Greengrass
Testing Lambda from Greengrass
Summary
Building Local AWS Lambda with AWS Greengrass
Introducing AWS Lambda
Creating the AWS Lambda function
Testing the AWS Lambda function
Publishing the AWS Lambda function
Configuring AWS Lambda security
Invoking the AWS Lambda function
Deploying AWS Lambda with AWS Greengrass on Raspberry Pi 3
Accessing AWS Lambda from IoT devices
Building IoT projects with AWS Lambda and AWS Greengrass
Accessing local resources
Developing local AWS Lambda
Configuring AWS Greengrass Core
Testing the demo
Interacting with things within a group
Summary
Expanding IoT Capabilities with AWS IoT Button
Introducing AWS IoT Button
Reviewing a project scenario for AWS IoT Button
Setting up AWS IoT Button
Registering AWS IoT Button to AWS IoT
Connecting AWS IoT Button to a network
Testing
Interaction between AWS IoT Button and IoT devices
Building your IoT project with AWS IoT Button
Configuring AWS DynamoDB
Building Lambda and its rule
Building a Lambda program
Testing using IoT Button
Summary
Visualizing AWS IoT Data
Introducing IoT massive data
Introducing brief data visualization
Data visualization in the web
Data-Driven Documents (D3)
Chart.js
Flot
Consuming real-time sensor data in a web application
Visualizing data from AWS IoT
Configuring AWS IoT
Configuring AWS Cognito
Configuring AWS IAM
Developing a sensor publisher
Developing data visualization from AWS IoT
Running the project
Introducing Amazon QuickSight
Consuming sensor data from Amazon QuickSight
Building data visualization for your IoT projects
Summary
Building Predictive Analytics for AWS IoT
Introducing AWS Machine Learning services
Making your sensor speak
Introducing Amazon Polly
Developing a program for Amazon Polly
Integrating Amazon Echo into your IoT projects
Preparing the project
Adding user role
Configuring AWS IoT
Creating AWS Lambda
Building Amazon Alexa skills
Testing the project
Making image and video analysis
Introducing Amazon Rekognition
Working with Pi Camera on Raspberry Pi
Uploading images to Amazon S3
Performing image analysis
Make predictive analytics for IoT data
Build a simple predictive analytics for your IoT project
Defining a machine learning model
Preparing data
Building a machine learning model
Evaluating and testing the model
Summary
Securing AWS IoT
Introducing IoT security
Understanding IoT risks
Introducing AWS IoT identity and security
Securing communication between AWS IoT and IoT devices
Authentication and authorization
Managing AWS IAM
Building a secure AWS IoT for your IoT project
Designing and implementing
Performing regular security testing
Working with security best practices
Summary
Other Books You May Enjoy
Leave a review - let other readers know what you think
Preface
The Internet of Things (IoT) market has increased a lot in the past few years, and the adoption and development of IoT have an upward trend. Analysis and predictions say that enterprise IoT platforms are the future of IoT. AWS IoT is currently leading the market with its wide range of device support SDKs and its versatile management console.
This book initially introduces you to the IoT platforms and how they make our IoT development easy. It then covers the complete AWS IoT suite and how it can be used to develop secure communication between internet-connected things, such as sensors, actuators, embedded devices, and smart applications. The book also covers the various modules of AWS—AWS Greengrass, AWS device SDKs, AWS IoT Platform, AWS Button, AWS Management consoles, AWS-related CLI, and API references, all with practical use cases.
Toward the end, the book supplies security-related best practices in order to make bidirectional communication more secure. When you've finished this book, you'll be up and running with the AWS IoT suite and building IoT projects.
Who this book is for
This book is for anyone who wants to get started with the AWS IoT suite and implement it with practical use cases.