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, 2020 in AWS by akhtar
• 38,230 points
1,131 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, 2020 by MD
• 95,440 points

Related Questions In AWS

0 votes
1 answer
+3 votes
6 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,210 points
19,247 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
11,235 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
20,877 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, 2020 in AWS by MD
• 95,440 points
8,963 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP