Leanpub Header

Skip to main content

Mastering AWS IoT Core: A Practical Guide to Connecting, Securing, and Managing IoT Devices at Scale

Master AWS IoT Core with this hands-on, comprehensive guide. Learn how to securely connect, manage, and scale your IoT device fleets using MQTT, AWS IoT Greengrass, bulk enrollments, and OTA updates. From edge hardware setups to cloud analytics and Zero Trust security, build enterprise-grade architectures today.

Minimum price

$19.99

$24.99

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
About

About

About the Book

Are you ready to architect, secure, and scale enterprise-grade IoT solutions?

Building an Internet of Things (IoT) ecosystem is about much more than just connecting devices to the internet. It requires robust security, efficient telemetry routing, and scalable fleet management. Mastering AWS IoT Core is your comprehensive, hands-on guide to mastering the AWS IoT landscape.

Whether you are a cloud architect, DevOps engineer, or IoT developer, this book takes you from absolute basics to production-ready deployments. You will follow practical labs and real-world scenarios to learn:

  • IoT Foundations: Understand recommended architectural patterns, master standard exchange protocols like MQTT, and navigate hardware selection and baseline AWS service configurations.
  • Core Operations: Establish fully functional bidirectional communication between your hardware and the cloud. You will manage state persistence for production-ready reliability, use the AWS IoT Core Rules Engine to efficiently collect, enrich, route, and store telemetry data, and leverage serverless computing via AWS Lambda to securely scale your solution.
  • Advanced Fleet and Security Management: Discover enrollment and provisioning strategies to securely register and authenticate large device fleets. You will orchestrate Over-the-Air (OTA) updates to remotely deliver features and patch vulnerabilities, leverage Edge computing to process data locally and reduce cloud costs, and enforce enterprise-grade security through secure remote tunneling and real-time behavioral profiling.

Stop struggling with fragmented tutorials and learn how to build secure, scalable edge-to-cloud architectures from the ground up. All accompanying source code, configuration files, and deployment scripts are publicly available on https://github.com/jugurthab/mastering_aws_iot_book so you can easily follow along and build right alongside the book!

Author

About the Author

Contents

Table of Contents

Dedication

Preface

Acknowledgments

What Is Covered in This Book

  1. Part I: The Foundations of IoT and AWS
  2. Part II: Core Operational Skills
  3. Part III: Advanced Production and Fleet Scaling
  4. Source Code and Practical Examples

Part I - The Foundations of IoT and AWS

Chapter 1 - Introduction to the IoT (Internet of Things)

  1. What is IoT? A Real-World Perspective
  2. Common IoT Architectures
  3. IoT Key Protocols: MQTT, HTTP, CoAP
  4. Key IoT Challenges: Scalability, Security, and Observability
  5. Conclusion

Chapter 2 - Introduction to AWS IoT Core

  1. What is AWS IoT Core and What Problems Does It Solve?
  2. Lab: Setting Up Your AWS Account and Environment
  3. AWS IoT Core basics
  4. AWS Lambda (Serverless and Event-Driven Compute)
  5. AWS SQS (Simple Queue Service)
  6. AWS S3 (Simple Storage Service)
  7. AWS DynamoDB
  8. AWS IAM (Identity and Access Management)
  9. AWS CloudWatch (Centralized Observability)
  10. Conclusion

Chapter 3 - Hardware and Material Labs

  1. Basic Components
  2. Interactive Components
  3. The Processing Unit: The Brain of the Device
  4. Lab 1: Configuring the Raspberry Pi
  5. Lab 2: Building a Distance Tracker
  6. Conclusion

Part II - Core Operational Skills

Chapter 4 - Device Identity and Security

  1. Understanding the IoT Registry
  2. Interacting with AWS
  3. Security 101: A “Security by Design” Approach
  4. Lab Exercise: Preparing the Connection Setup
  5. AWS IoT Core Service Quotas and Limits
  6. Conclusion

Chapter 5 - Hello, Cloud: Connecting Your First Device

  1. Setting Up Platform Prerequisites
  2. Setting Up Device side Prerequisites
  3. Building a Python MQTT Publisher
  4. Bidirectional Communication: Subscribing and Receiving Messages
  5. Conclusion

Chapter 6 - Managing State Persistence

  1. Persistence Core System: Desired vs. Reported State
  2. Laboratory Reference: Farm Gate State Management
  3. MQTT Retained Messages (basic shadow)
  4. Device Shadows: The Theory
  5. Device Shadow: Practise
  6. Conclusion

Chapter 7 - The Rules Engine: Your Data’s First Stop

  1. Introduction to the Rules Engine and IoT SQL
  2. The IoT SQL Query Syntax
  3. Rule Actions: Routing to Target Destinations
  4. Laboratory: Provisioning an IoT Rule for DynamoDB Ingestion
  5. Architectural Best Practices and System Limits
  6. Conclusion

Chapter 8 - Going Serverless

  1. Designing a Serverless Backend with AWS Lambda
  2. Operational Configuration and Tuning
  3. Laboratory: Architecting a Real-Time Temperature Alerting System
  4. Advanced Architectural Optimization
  5. Conclusion

Part III - Advanced Production and Fleet Scaling

Chapter 9 - Fleet Provisioning and Management

  1. The Challenge of Provisioning Devices at Scale
  2. Architectural Foundation: Provisioning Templates
  3. Medium-Scale Enrollment: Bulk Registration
  4. Large-Scale Enrollment 1: Manufacturing with Embedded Credentials
  5. Large-Scale Enrollment 2: Provisioning Devices Without Pre-Shared Credentials
  6. Recommendations and Operational Limits
  7. Conclusion

Chapter 10 - Over-the-Air (OTA) Updates via AWS IoT Jobs

  1. The Architectural Imperatives of OTA
  2. OTA Job Types
  3. OTA Phase 1: Custom Jobs (Generic Execution)
  4. OTA Phase 2: FreeRTOS Managed Executions
  5. Dynamic Thing Groups
  6. Advanced Job Operations
  7. Conclusion

Chapter 11 - Edge Computing with AWS IoT Greengrass

  1. The Case for Edge Computing
  2. Introduction to Greengrass: Extending Cloud Capabilities to the Edge
  3. Lab 1: Provisioning the Greengrass Core Device
  4. Lab 2: Smoke, Gas, and Fire Detection System
  5. Conclusion

Chapter 12 - Security Deep Dive

  1. Secure Tunneling for Remote Access
  2. Device Defender for Auditing and Monitoring
  3. Conclusion: Securing the Edge and Beyond

About the Author

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub