n8n

How to Automate Amazon S3 File Archiving?

Need a fast way to gather files from Amazon S3 and hand them off as one download? This setup collects every file in a chosen folder and packs them into a single zip. It fits teams that share exports, reports, or creative assets without clicking each file.

You start it with a manual run. First it lists all objects in the target S3 folder, then downloads each file. Next it combines the results so all files sit together, and finally it compresses them into one zip you can download. The flow uses Amazon S3 for storage and simple n8n steps for merge and compression. Because it reads the folder directly, nothing gets skipped or renamed by hand. The combine step also includes the actual file data, so the zip picks up every file automatically.

You only need S3 access keys, the bucket name, and the folder path. Set these once and reuse the export any time you need a fresh archive. Expect to cut a 20 minute task down to a few minutes with fewer mistakes. Use it for monthly backups, client deliverables, and bundling logs for support or audits.

What are the key features?

  • Manual start so teams can run exports on demand
  • Lists all files in a chosen Amazon S3 bucket folder
  • Downloads each listed file in a single run
  • Combines all results into one item with the file data included
  • Compresses everything into one zip file for quick download
  • Uses a dynamic setting to include every downloaded file in the zip

What are the benefits?

  • Reduce manual downloads from 20 minutes to 2 minutes
  • Bundle hundreds of files into one zip for easy sharing
  • Eliminate missed files by listing directly from the source folder
  • Handle 10 times more files compared to manual steps
  • Connect Amazon S3 to n8n with one credential for simple exports

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Amazon S3. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n credentials manager on n8n Cloud, create a new Amazon S3 credential. Enter your Access Key ID, Secret Access Key, and select the correct Region. Give the credential a clear name and save.
  4. Make sure your IAM user or role has S3 permissions to list and read objects. At minimum, allow ListBucket on the bucket and GetObject on the folder path you will use.
  5. Open the List ALL Files node. Select your Amazon S3 credential. Set Bucket Name to your bucket and Folder Key to the folder path you want to export.
  6. Click Execute Node on the List ALL Files node and confirm you see a list of file keys returned.
  7. Open the Download ALL Files node. Select the same Amazon S3 credential. Confirm the File Key field references the key from the previous step and the Bucket Name matches.
  8. Run the Download node to fetch a small sample and check the binary tab to confirm files are present.
  9. Open the All into one Item node and make sure Include Binaries is enabled so the files are carried forward for compression.
  10. Open the Compress node. Set a clear file name that ends with .zip. Leave the dynamic binary property setting as provided so all downloaded files are included.
  11. Click Execute workflow. After it finishes, open the Compress node output and download the zip. Verify it contains the expected files.
  12. If you get no files, check the folder path and region. If you see access denied, update IAM permissions. If very large folders time out, split by subfolder or run batches. If files are missing, confirm the folder key matches your S3 prefix format.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Amazon S3

Sign up

AWS Free Tier: 5 GB S3 Standard storage, 20,000 GET requests, 2,000 PUT/COPY/POST/LIST requests, and 100 GB data transfer out / mo

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.