- Newest
- Most votes
- Most comments
Yes, there is a streamlined, serverless approach to collect, store, and visualize IoT data on AWS using a minimal number of services. Here's my recommended architecture:
For minimal aws services stack
- AWS IoT Core – For securely ingesting data from your IoT devices.
- Amazon Timestream – A purpose-built time series database ideal for storing and querying time-stamped IoT data. It integrates seamlessly with AWS IoT Core via IoT Rules.
- Amazon Managed Grafana – For real-time visualization and dashboards. It offers native support for Amazon Timestream and other AWS data sources.
Implementation overview:
-
Step 1: Configure an IoT Rule to route MQTT message payloads directly to Amazon Timestream.
-
Step 2: Set up Amazon Managed Grafana and connect it to your Timestream database as a data source.
-
Step 3: Create dashboards and visualizations in Grafana to monitor metrics, trends, or anomalies.
This solution is cost-efficient, highly scalable, and fully managed, making it ideal for real-time IoT analytics with minimal operational overhead.
If you require preprocessing or transformation of incoming data, you can incorporate AWS Lambda between IoT Core and Timestream.
answered a year ago
You can use AWS IoT SiteWise as a fully managed service to collect, organize, and analyze your IoT data at scale. AWS IoT SiteWise enables data collection from sensors and equipment, with the data being uploaded to AWS cloud using the SiteWise Connector. The collected data can be stored in a scalable, time-optimized internal data store, allowing you to stream live data in near real-time and query historical data.
For visualization, you can use Amazon QuickSight to analyze and create visual representations of your sensor data. This solution is cost-efficient as QuickSight offers pay-as-you-go pricing for business intelligence services.
The entire process can be implemented by:
- Connecting your IoT device to AWS IoT Core
- Forwarding messages from IoT Core to a Lambda function
- Using Kinesis Data Firehose to store data in S3
- Using Amazon QuickSight to analyze and visualize the stored data
References
[2] Visualizing Sensor Data in Amazon QuickSight | AWS Compute Blog
Hi Makendran , We are getting below errors while configuring AWS Lambda as per your given reference. We are using Node.js 22.x but your given reference article is publish in 2019 so there Node.js10.x has been used. Kindly share us latest reference. {
"errorType": "ReferenceError",
"errorMessage": "require is not defined in ES module scope, you can use import instead",
"trace": [
"ReferenceError: require is not defined in ES module scope, you can use import instead",
" at file:///var/task/index.mjs:1:13",
" at ModuleJob.run (node:internal/modules/esm/module_job:274:25)",
" at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:644:26)",
" at async _tryAwaitImport (file:///var/runtime/index.mjs:1030:16)",
" at async _tryRequire (file:///var/runtime/index.mjs:1079:86)",
" at async _loadUserApp (file:///var/runtime/index.mjs:1103:16)",
" at async UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1148:21)",
" at async start (file:///var/runtime/index.mjs:1332:23)",
" at async file:///var/runtime/index.mjs:1339:1"
]
}
Node.js10.x
Thanks , Kartheek.
answered a year ago
Hello Kartheek,
Here's the updated code for Node.js 22.x using AWS SDK v3, which is the recommended version for modern Node.js applications:
import { FirehoseClient, PutRecordCommand } from "@aws-sdk/client-firehose"; const firehoseClient = new FirehoseClient(); const StreamName = "SensorDataStream"; export const handler = async (event) => { console.log('Received IoT event:', JSON.stringify(event, null, 2)); const payload = { time: new Date(event.time), sensor_value: event.sensor_a0 }; const command = new PutRecordCommand({ DeliveryStreamName: StreamName, Record: { Data: new TextEncoder().encode(JSON.stringify(payload)) } }); return await firehoseClient.send(command); };
AWS IoT Basic Ingest: https://www.youtube.com/watch?v=BmJnWOY1I2Q&list=PLS47QG_BdOlSqynlBanGsmZAYWkm-6ELu&index=1
AWS Cloudwatch: https://www.youtube.com/watch?v=HHM4Zk90sN0&list=PLS47QG_BdOlSqynlBanGsmZAYWkm-6ELu&index=2
Losant: https://www.youtube.com/watch?v=2J0w48YNH-A&list=PLS47QG_BdOlSqynlBanGsmZAYWkm-6ELu&index=17
answered a year ago
Relevant content
- AWS OFFICIALUpdated 2 months ago

Hi Ushpal,
AWS has discontinued the Timestream service for new account users. Could you suggest an alternative solution for collecting, storing, and visualizing IoT data? Any help would be appreciated.
Thanks, Kartheek