'AWS Quicksight: How to Get the latest Data from S3
My Quicksight currently takes everything in the S3 bucket
(S3 sample) https://i.stack.imgur.com/cO8kL.png
But S3 keep changing folder base on the date so 01/,02/,03/ and so on Is there a way to only take the latest data not all of it?
[this my current manifest:]
{
"fileLocations": [
{
"URIPrefixes": [
"https://sample-S3bucket.amazonaws.com/"
]}
],
"globalUploadSettings": {
"format": "JSON"
}
}
There might be a simple solution that I might not know about.
amazon-web-services">
amazon-web-servicesamazon-s3">
amazon-s3amazon-redshiftamazon-quicksightquicksight-embedding
Solution 1:[1]
You could set Quicksight to read from another bucket and set a lambda that is triggered when a a new file is uploaded into your existing bucket. This lambda would:
- Remove any files from the bucket which QuickSight is reading from
- Copy over the latest file into the bucket
- Creates a QuickSight SPICE ingestion via api.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | darcoli |
