This project provides a CloudFormation (SAM format) template for deploying an AWS infrastructure that collects and manages data from IoT devices installed in a company canteen. The template automatically creates all the necessary resources to gather, store, and monitor environmental data (such as temperature, humidity, CO₂, VOC index, and particulate matter) sent by devices, leveraging AWS services like IoT Core, Timestream, and CloudWatch Logs. An AWS IoT rule receives the data packets published on a specific MQTT topic, stores them in a Timestream table for analysis and historical tracking, and enables monitoring through CloudWatch Logs. The project can be easily customized by specifying the names for the database and table to be created.
This project includes a SAM-type template.yaml file.
Thanks to this, you can create a rule that forwards a JSON packet to a Timestream table, as specified in the test.json file.
To use it, follow these steps:
-
Sam init;
-
Specify option 2 referring to template.yaml;
-
sam deploy --guided
-
Specify the name of the Timestream database and table;
-
You can publish to an MQTT channel with the prefix name 'rules/VocAcquisition'
Note: No test things or related certificates are included in this template.