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.
does aws s3 select work with multiple files?
Asked Answered
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.
© 2022 - 2024 — McMap. All rights reserved.
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