Upload large files to S3 from command line

Short version

$aws s3 cp file.tar.gz s3://my-bucket/

Long version

Once in a while you are stuck with the need to upload a large out of your Linux/Ubuntu command line.

This involves a few steps.

  1. Install the aws command line.
    curl “https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o “awscliv2.zip”
    unzip awscliv2.zip
    sudo ./aws/install
  2. Configure AWS
    $aws configure
    In this step you will be asked to provide the AWS access id and secret key.

That is all.

Additional Notes:

These are a few options not really worth wasting time on. They involve a lot more steps.

a. transfer.sh
Looks like they ran out of funds. It use to work fine earlier but now dead.

b. Upload files from command line to OneDrive

c. Upload files from command line to Google Drive