How to transfer files between AWS s3 and AWS ec2?

0 votes

Hi Guys,

 I am new to AWS CLI. I want to transfer files from EC2 instance to S3 bucket or vice-cersa. How can I do that? 

Sep 22 in AWS by akhtar
• 28,160 points
118 views

1 answer to this question.

0 votes

Hi@akhtar,

You can use the AWS CLI command to copy files from your EC2 Instance or even your local machine to S3 storage as shown below.

$ aws s3 cp myfolder s3://mybucket/myfolder --recursive
answered Sep 22 by MD
• 65,240 points

Related Questions In AWS

0 votes
1 answer
+3 votes
5 answers

How to move files from amazon ec2 to s3 bucket using command line

Hey, 3 ways you can do this: To ...READ MORE

answered Oct 9, 2018 in AWS by Omkar
• 69,030 points
12,801 views
0 votes
2 answers

How to skip headers when reading a CSV file in S3 and creating a table in AWS Athena?

Thanks for the answer. This should be clear ...READ MORE

answered Aug 14, 2019 in AWS by athenauserz
4,240 views
0 votes
2 answers

How to display just the name of files using aws s3 ls command?

aws s3 ls s3://<your_bucket_name>/ | awk '{print ...READ MORE

answered Mar 17, 2019 in AWS by anonymous
9,343 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to edit files in the AWS S3 bucket from CLI?

Hi@akhtar, According to my knowledge,  you can't edit ...READ MORE

answered Jun 8 in AWS by MD
• 65,240 points
491 views