IoT Telemetry and Analytics Platform on AWS

Device telemetry streams through IoT Core and Kinesis into two paths: Firehose archives records to S3 for Athena and QuickSight, while Lambda updates OpenSearch and publishes threshold alerts through EventBridge and SNS.

Explore diagram

Explore on mobile. Create and edit manually or with AI on a computer.

AWS IoT diagram with IoT Core and Kinesis feeding S3, Athena, and QuickSight history alongside Lambda, OpenSearch, EventBridge, and SNS alertsExplore diagram

AWS IoT diagram with IoT Core and Kinesis feeding S3, Athena, and QuickSight history alongside Lambda, OpenSearch, EventBridge, and SNS alerts. Open the image to explore this ready-made diagram.

Overview

Registered devices authenticate with AWS IoT Core, which sends telemetry into Amazon Kinesis. Firehose archives readings in S3 for Athena queries and QuickSight history dashboards. A parallel Lambda processor updates OpenSearch, evaluates thresholds, and publishes alerts through EventBridge and SNS, keeping immediate operational decisions separate from buffered historical analysis.

Components

  • Device Ingress: IoT Core brokers MQTT while the registry authenticates devices by certificate.
  • Streaming: Kinesis buffers real-time telemetry; Firehose batches it into the raw lake.
  • Processing: A transform Lambda derives metrics from the stream.
  • History + Search: Athena queries the S3 telemetry archive for QuickSight trends; OpenSearch indexes transformed readings for operational search.
  • Alerts: The transform evaluates thresholds and publishes breach events through EventBridge to SNS.

Telemetry Flow

  1. Devices authenticate via the registry and publish telemetry to IoT Core.
  2. IoT Core streams messages into Kinesis, which feeds Firehose and the transform Lambda.
  3. Firehose archives raw telemetry to S3 while the transform writes normalized readings to OpenSearch.
  4. The transform Lambda evaluates thresholds and publishes alert events to EventBridge, which notifies operators through SNS.
  5. Athena queries the S3 archive and QuickSight visualizes historical fleet trends.

Customize First

  • Add device shadows, OTA updates, or Greengrass for edge processing.
  • Invoke a SageMaker endpoint from the transform when a trained anomaly model adds value.
  • Tune S3 partitions, archive retention, and OpenSearch index lifecycle for query performance and cost.

Related AWS guides

Use these practical explanations to compare services, failure boundaries, and operating tradeoffs before adapting the architecture.

Design rationale

Decisions that shape this architecture

1

Authenticate devices independently

The IoT registry and certificates give each device an identity and policy boundary. Shared credentials make revocation and blast-radius control much harder.

2

Preserve raw telemetry before enrichment

Firehose archives source messages to S3 while Lambda builds derived views. Raw retention supports replay, model changes, and incident analysis.

3

Separate operational decisions from historical analysis

Lambda evaluates thresholds as records arrive and maintains the OpenSearch view. Athena queries the S3 archive for QuickSight trends after delivery and refresh, so dashboard lag does not delay threshold alerts.

Before production

Operational checks

Automate certificate provisioning, rotation, revocation, and fleet audit.

Define behavior for late, duplicated, out-of-order, and malformed readings.

Tune Kinesis shards and downstream concurrency from measured ingest volume.

Apply retention to OpenSearch and S3, and monitor archive delivery and dashboard freshness.

Scope and tradeoffs

What this diagram does not solve

Connectivity is not guaranteed

Devices need local buffering, reconnect behavior, sequence handling, and an offline operating model. Cloud architecture alone cannot make an unreliable network reliable.

Archive and search have different guarantees

Define how the OpenSearch projection is rebuilt from retained data, how late readings are reconciled, and how deletion requirements reach both stores. Historical dashboards depend on Firehose delivery, Athena metadata, and refresh cadence.

Common questions

Frequently asked questions

Why use Kinesis after IoT Core?

Kinesis provides a scalable stream that can feed multiple ordered processing and delivery paths with independent consumers.

Why use both OpenSearch and an S3 archive?

OpenSearch supports operational discovery over indexed readings. S3 retains history for replay and Athena analysis without requiring the search index to hold every event indefinitely.

Where should IoT alerts be evaluated?

In this starter, the Lambda stream processor evaluates thresholds and publishes alert events. More complex anomaly detection can be added when its latency, state, and model requirements are clear.

Keep exploring

Explore the library
AWS data lake and analytics architecture diagram with Kinesis, Firehose, Lambda, Glue, raw and curated S3 zones, Lake Formation, Athena, Redshift, and QuickSight
Data Platformadvanced

Governed Data Lake and Analytics Platform on AWS

This architecture supports both near-real-time processing and batch-oriented curation. Kinesis fans data into a fast Lambda path and a Firehose landing path, Glue creates query-ready datasets, and Lake Formation applies governance across Athena, Redshift, and QuickSight.

Explore the architecture
Event-driven order processing AWS architecture diagram with API Gateway, EventBridge, SQS, Step Functions saga, Lambda services, DynamoDB, and SNS
Event-drivenadvanced

Event-Driven Order Processing Architecture on AWS

This design accepts an order through an authenticated API, publishes a durable domain event, and uses a saga to coordinate payment, inventory, fulfillment, and notification. It separates request latency from business processing while preserving explicit recovery paths.

Explore the architecture
AWS batch inference diagram with EventBridge, Step Functions, private VPC compute, job definitions, ECR, SageMaker model registry, and S3 inputs and predictions
ML Platformadvanced

Machine Learning Batch Inference Platform on AWS

This architecture runs scheduled or on-demand scoring as a durable workflow. Step Functions coordinates jobs, AWS Batch supplies container compute, ECR pins the runtime, an approved SageMaker model supplies the artifact, and S3 preserves inputs and predictions.

Explore the architecture

Ready-made AWS diagram

Explore this AWS architecture

Open the diagram from this guide and explore how it works. Create and edit manually or with AI on a computer.

Explore diagram