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 greatly reduce bandwidth usage by distributing your large files using BitTorrent protocol.

You can distribute any files in your S3 bucket via BitTorrent protocol by following these steps:

  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. Upload the file to your S3 bucket.
    1. Click on the upload button.
    2. Click on the Add files button.
    3. Select file and click the Open button.
    4. Click Upload to start uploading the file to AWS.
    5. Wait for upload to finish.
  4. Enable public access to the file.

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

  5. Download torrent file.
    1. Click on the file that you want to distribute using BitTorrent.
    2. Copy the Object URL at the bottom of page.
    3. Paste URL in browser and append ?torrent towards the end. Press Enter.
  6. Use the downloaded torrent file to start downloading the S3 file using your favorite BitTorrent client.
Discuss the article:

Share your thoughts, suggest corrections or just say Hi. Login not required.

Share!