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

--

--

I write about firebase, Dialogflow, Python and Data Science

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store