How To Upload Files To An S3 Bucket using AWS CLI

In this blog post, I will show you how to upload files to an AWS S3 bucket using AWS CLI.

By default, AWS S3 Management Console has a 160MB upload limit when using the browser.

If your files are larger than 160 MB, you need to either use AWS API or AWS CLI.

In this blog post, I will show you how I use AWS CLI to upload files to an S3 Bucket.

Get Started

To get started with AWS CLI, please install the AWS CLI tool on your machine and configure it.

You can use the blog post I’ve published about how to install AWS CLI on a Windows 10 machine.

The first step in uploading files to an S3 bucket is to view all the S3 bucket using the following command.

aws s3 ls

Using the bucket name from the first command, I will copy a folder with all the files stored inside using the command below.

aws s3 cp C:\1.DevOps\data\test\ s3://torahdb --recursive

If I check my S3 bucket from the AWS management console, I will see the file I just uploaded using AWS CLI.


Posted

in

,

by