Can I copy objects from one s3 bucket to another

+2 votes
Can I copy objects from one s3 bucket to another using s3api.
Aug 23, 2019 in AWS by Nisha
3,006 views

2 answers to this question.

+1 vote

You can use something like this:

aws s3api copy-object --copy-source bucket1/test.txt --key test.txt --bucket bucket2

you can use the --copy-source flag for this purpose.

answered Aug 23, 2019 by Mihir
+1 vote
Hi,

We can use sync command to move objects from one bucket to another bucket.

aws s3 sync s3://ORIGINAL_BUCKET s3://NEW_BUCKET

Before that, we need to create a new S3 bucket and also verify the buckets by recursive command

aws s3 ls --recursive s3://ORIGINAL_BUCKET_NAME

aws s3 ls --recursive s3://NEW_BUCKET_NAME
answered Jan 27, 2020 by vivek
• 530 points

Related Questions In AWS

0 votes
1 answer

How can i copy tables from one database to other on AWS?

You can use AWS Data pipeline to ...READ MORE

answered Jul 5, 2018 in AWS by Priyaj
• 58,020 points
4,787 views
+1 vote
1 answer
0 votes
0 answers

transfer the ownership of Amazon S3 objects from one AWS account to another

I want to transfer the ownership of ...READ MORE

Oct 9, 2019 in AWS by Hannah
• 18,520 points

closed Oct 9, 2019 by Kalgi 808 views
0 votes
1 answer
+1 vote
2 answers
0 votes
1 answer
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