Sync AWS S3 files to a data store on schedule
Recipe ToolsMarketingDeveloper ToolAPI Integration
What it does
When a scheduled interval triggers, this automation lists files in an Amazon S3 bucket and processes each one. It retries on network errors and sends an email if the job fails.
Who it's for
Data and analytics teams who need to regularly ingest S3 data without manual intervention.
How teams use this
Ingest S3 data on a daily schedule
Run the file list and processing every morning at a set time so your data warehouse always has the latest S3 files without manual intervention.
Filter files by extension type
Only process PDF and index files from the bucket so other file types are ignored. Modify the conditions to match different file types if needed.
Add a second destination for processed files
Include an extra step after processing to send each file to a data warehouse or API endpoint. Set the condition to only send files that passed validation.
Escalate failures to a Slack channel
Add a Slack notification step when the job fails so the team sees the error in real time instead of waiting for an email. Filter the notification to only high-priority buckets.
How it works
- Run on a specified interval. The automation starts at the scheduled time you set, such as daily or weekly, so the S3 sync runs without someone triggering it manually.
- List files in Amazon S3. Retrieve the list of all files in the S3 bucket so each one can be checked and processed in the next steps.
- Process each file that matches criteria. For each file in the list, check if the object name ends with pdf or index.html. Process only those files and skip the rest.
- Retry on network errors. If a network error occurs during the file list or processing steps, retry the entire block up to 2 times before failing.
- Send email notification on failure. Send an email to someone if the job fails after all retries so the team knows the sync did not complete successfully.