Sync AWS S3 files to a collection list
Developer ToolMarketingRecipe ToolsDatabaseUtilitiesAPI Integration
What it does
When a new file lands in Amazon S3, this automation accumulates it to a list and checks if it matches a specific path. If it matches, the automation queries the collection and logs the result to the job report.
Who it's for
Data and analytics teams who need to monitor S3 uploads and route matching files for processing.
Apps used
How teams use this
Monitor census data file uploads
Track when the Canadian census boundary products PDF arrives in S3, match it by exact path, and log the collection query results. The team sees all matching uploads in the job report without manual checks.
Route files to different collections
Extend the path condition to check for multiple file types and route each to its own collection list. Add more conditions so different datasets trigger different queries and logs.
Alert teams on matching uploads
Retarget this automation to send a Slack notification instead of only logging when the census file is detected. The same S3 monitor and path check remain in place, only the final step changes.
How it works
- Monitor for new files. Amazon S3 detects when a new file is uploaded to the bucket and passes the file path to the next step.
- Add file to the list. Accumulate the file details to MyList so all uploads are tracked in one place for the batch process.
- Check if path matches. If the file path contains docs-gated/data/aggregate-dissemination-areas/2020.06/en-us/pdf/canadian_census_boundary_products_2020.06_product_guide.pdf, proceed to query the collection.
- Query the collection. Retrieve all items from MyCollection list in batch mode so the matching file and related records are available for the next step.
- Log results via HTTP. Send the query results through HTTP to log the file match and collection data to the job report for audit and monitoring purposes.