does aws s3 select work with multiple files?
Asked Answered
L

1

11

I'm using S3 select to query a object from a file in S3 bucket but wondering if I can do it with multiple files or if its limited to just one. I wrote one query from a file using aws lambda but when I tried writing another one for a different file it gave me a error message.

Leeland answered 12/7, 2018 at 18:47 Comment(3)
I am having similar issue. I am capturing incoming messages from a temperatures sensor through AWS IoT in to an s3 bucket. Each s3 object is a new temperature reading. Some thing like aws s3api select-object-content --bucket temperatures --key '$aws/things/sensor/shadow/update/accepted/2018-07-13/1531514034796' --expression 'S ELECT s.desired.temperature from S3Object s ' --expression-type SQL --input-serialization '{"JSON":{"Type": "document"}}' --output-serialization '{"CSV":{}}' test --profile myprofile works since I specify the one specific key.Appose
Also see #50721877Appose
Possible duplicate of Can S3 Select search multiple objects?Achondroplasia
C
7

Amazon S3 Select operates on only one object.

To query multiple files at once on S3 with a SQL syntax you should use Amazon Athena.

Catechize answered 25/2, 2019 at 7:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.