Has anyone successfully connected to AWS IoT and stored their data that contains multi-measure data? For example, storing GPS coordinates on the same record in two separate columns? I can store single measurements easily enough, but I can't seem to figure out how to format the json to store as a multi measure record with dimensions. Any examples would be greatly appreciated. You can store multi measure in Timestream, but I'm not sure how to properly code the json object to send it in the required format.
Never used it, but looking at the docs just now, it's one record per measure
The data type of the measure are inferred from the data type of the value of the message payload. JSON data types such as integer, double, boolean, and string are mapped to Timestream data types of BIGINT, DOUBLE, BOOLEAN, and VARCHAR respectively.
Each attribute's value is written to its own record in the Timestream table.
So even if multi-measure is supported in general, it is not with the auto-magic IoT Rules (at least, not currently).
You could write something -- and with AWS, that is a voluminous can of worms -- that reads whatever JSON you post on the IoT topic and create Timestream rows in some custom way.
That latter link shows using the Python API/SDK. No mention of it working directly through IoT Rules, in neither the IoT docs describing Timestream, nor the Timestream docs describing IoT.
