- 最新
- 最多得票
- 最多評論
I would consider IoT Analytics - https://aws.amazon.com/iot-analytics/ - you pay only for what you send, it provides automatic data retention management of raw data as well as of transformed data, it can use service-managed buckets as well as customer-managed bucket, and provides transformation pipelines to filter or enrich the data.
S3 writes are not free, S3 is actually more expensive than other methods for small file, since you pay for each PUT request. If the files have already been assembled client side (eg compressed, formatted in queryable formats such as Parquet), writing to S3 could be a good choice.
For authenticating to S3 you can use pre-signed url or IAM credentials. For IAM/STS tokens I would suggest to use AWS IoT Credential Provider - https://docs.aws.amazon.com/iot/latest/developerguide/authorizing-direct-aws.html - to exchange the device certificate for the tokens.
For using a presigned URL you would instead have an API or an MQTT service that can generate the URL when the device needs it.
Finally. using AWS Greengrass would provide you lots of the functionality out of the box and more, such as automatic management of IAM credentials via TES, Stream Manager (https://docs.aws.amazon.com/greengrass/latest/developerguide/stream-export-configurations.html) and communication with AWS IoT Core.
My suggestion would then be (in order of preference):
- Greengrass + Stream Manager + AWS IoT Analytics
- Greengrass + custom lambda to create the file + Stream Manager S3 exporter
- Greengrass + custom lambda to create the file + custom lambda to upload to S3
相關內容
- 已提問 1 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前