Hello Friends 👋,

Welcome To Infinitbility! ❤️

This article help you to do upload and download files from s3 using aws cli, here we use aws copy command to download and upload files to s3 bucket using aws cli.

May be you are looking for it

How to install and configure S3 in ubuntu

How to check files and folders of s3 bucket using aws cli

How to copy file from s3 using aws cli

How to copy folder from s3 using aws cli

how to copy folder s3 bucket to another s3 bucket

How to delete files on s3 bucket using aws cli

Let’s start today’s topic How to copy file from s3 using aws cli or how to upload and download files from s3 bucket using aws cli.

Table of content

  1. Upload files to s3 bucket
  2. Download files from s3 bucket

Upload files to s3 bucket

upload file to s3 bucket using aws cli cp command.

sudo aws s3 cp /var/www/html/file.jpg s3://BUCKET_NAME/

Download files from s3 bucket

download file from s3 bucket using aws cli cp command.

sudo aws s3 cp  s3://BUCKET_NAME/file.jpg /var/www/html/

Thanks for reading…