How can I test the upload speed of Amazon S3 Transfer Acceleration for a specific file size?
Last updated: 2019-05-30
I want to use S3 Transfer Acceleration to improve the file upload speed to my Amazon Simple Storage Service (Amazon S3) bucket. I want to compare the speeds between uploading directly to the S3 bucket and using S3 Transfer Acceleration. How can I do that?
To compare the general upload speed across Amazon S3 regions, you can use the Amazon S3 Transfer Acceleration Speed Comparison tool. To test the upload speed of a specific file size, you can use the following scripts from the Amazon Web Services - Labs GitHub website:
Before you run test-upload.sh or test-upload-macosx.sh, you must:
1. Review your AWS Identity and Access Management (IAM) user credentials to be sure that you have the permissions to enable Transfer Acceleration. You need the s3:PutAccelerateConfiguration permission to enable or disable Transfer Acceleration. Additionally, you need the s3:GetAccelerateConfiguration permission to view whether a bucket has Transfer Acceleration enabled. For more information, see Requirements for Using Amazon S3 Transfer Acceleration.
2. Enable Transfer Acceleration on your S3 bucket.
Requirements for test-upload.sh
Before you run test-upload.sh, you must first install the bc language on your Linux machine. Run this command to install bc on an Ubuntu or Debian machine:
apt-get install bc
Run this command to install bc on an Amazon Linux, CentOS, RHEL, or Fedora machine:
yum install bc
Requirements for test-upload-macosx.sh
Before you run test-upload-macosx.sh, you must first install coreutils on your macOS machine. Follow these steps:
1. Run this command to install Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2. Run this command to install coreutils using brew:
brew install coreutils