S3 provides highly available and reliable file hosting, but it could become very costly to distribute large files such ISO images as AWS charges for bandwidth usage. You can significantly reduce bandwidth usage by distributing your large files using BitTorrent protocol.

You can distribute and seed any files in your S3 bucket via BitTorrent protocol by configuring public access to your files and adding torrent parameters when accessing the files.

Steps to distribute AWS S3 objects using BitTorrent:

  1. Go to S3 dashboard of your AWS Management Console.
  2. Click on the bucket that contains the file that you want to distribute using BitTorrent.
  3. Click on the upload button.
  4. Click on the Add files button.
  5. Select file and click the Open button.
  6. Click Upload to start uploading the file to AWS.
  7. Wait for upload to finish.
  8. Enable public access to the file.

    This is required even if your bucket is already configured with public access policy.

  9. Click on the file that you want to distribute using BitTorrent.

    This and the remaining steps are to test that you can download the file using a BitTorrent client.

  10. Copy the Object URL at the bottom of page.
  11. Paste URL in browser and append ?torrent towards the end. Press Enter.
  12. Use the downloaded torrent file to start downloading the S3 file using your favorite BitTorrent client.
Discuss the article:

Comment anonymously. Login not required.