Upload Files to S3 Bucket using CLI
Step 1: Go to AWS Console, search for S3 and open it.
Step 2:
- Create a new S3 Bucket (Skip this step if you already have one)
- Type in your bucket name and choose your AWS region, scroll down to the button and click on “Create bucket”
Step 3: Execute the below command from the terminal to upload files to the S3 bucket.
aws s3 cp /local/file/path s3://bucket-name
Replace /local/file/path with the file or folder you want to upload and bucket-name with your s3 bucket name.
After executing the above command, the file will get uploaded to S3 Bucket.
How to Upload Files to AWS S3 using CLI?
The AWS Simple Storage Service (S3) from Amazon Web Services (AWS) is a widely used cloud storage option for securely overseeing and storing your data. The AWS Command Line Interface (CLI) offers a robust and effective means of engaging with various AWS services, including S3. Within this article, we will provide you with step-by-step instructions on how to utilize the AWS CLI to upload files to AWS S3.