Download file from s3 - aws cli

+1 vote
How to download a file from an s3 bucket using aws cli? Thank you!
Aug 23, 2019 in AWS by Greg
28,118 views

2 answers to this question.

+1 vote

You can use cp to copy the files from an s3 bucket to your local system. Use the following command:

$ aws s3 cp s3://bucket/folder/file.txt .

To know more about AWS S3 and its features in detail check this out! 

https://www.youtube.com/watch?v=XjPUyGKRjZs

Hope this helps!

answered Aug 23, 2019 by Faiza
0 votes

Hi,

You can download files from an S3 bucket on your local system using the cp command. The following cp command copies a single object to a specified file locally.

$ aws s3 cp s3://mybucket/test.txt test2.txt
answered Dec 14, 2020 by MD
• 95,060 points

Related Questions In AWS

0 votes
1 answer

How to download the latest file in a S3 bucket using AWS CLI?

You can use the below command $ aws ...READ MORE

answered Sep 6, 2018 in AWS by Archana
• 4,150 points
11,291 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 58,100 points
1,794 views
0 votes
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 58,100 points
2,587 views
0 votes
2 answers
0 votes
1 answer
0 votes
2 answers