I have a S3 bucket stores daily log files, named "Log_YYYY_MM_DD". Also, I have a table in Redshift only stores data of the latest log. For example:
- In S3, I have "Log_Date0.csv", "Log_Date1.csv", "Log_Date2.csv"
- And the redshift table should only contains data in "Log_Date2.csv"
How can I setup a daily data pipeline so that redshift automatically copy the latest log contains and rewrite the table?
Thanks